Record Class SignableCommand.Argument<S>
java.lang.Object
java.lang.Record
net.minecraft.network.chat.SignableCommand.Argument<S>
- Enclosing class:
SignableCommand<S>
public static record SignableCommand.Argument<S>(ArgumentCommandNode<S,?> node, String value)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArgumentCommandNode<S, ?> The field for thenoderecord component.private final StringThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionArgument(ArgumentCommandNode<S, ?> node, String value) Creates an instance of aArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()node()Returns the value of thenoderecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
node
The field for thenoderecord component. -
value
The field for thevaluerecord component.
-
-
Constructor Details
-
Argument
Creates an instance of aArgumentrecord class.- Parameters:
node- the value for thenoderecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
name
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-