Package net.minecraft.command.argument
Record Class SignedArgumentList.ParsedArgument<S>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.SignedArgumentList.ParsedArgument<S>
- Record Components:
node-value-
- Enclosing class:
SignedArgumentList<S>
public static record SignedArgumentList.ParsedArgument<S>(com.mojang.brigadier.tree.ArgumentCommandNode<S,?> node, String value)
extends Record
A parsed signed argument, also used as the entry of
SignedArgumentList.- Mappings:
Namespace Name official tn$aintermediary net/minecraft/class_7644$class_7645named net/minecraft/command/argument/SignedArgumentList$ParsedArgumentofficial aintermediary comp_975named nodeofficial bintermediary comp_1089named value
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParsedArgument(com.mojang.brigadier.tree.ArgumentCommandNode<S, ?> argumentCommandNode, String string) -
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.com.mojang.brigadier.tree.ArgumentCommandNode<S,?> 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
-
Constructor Details
-
ParsedArgument
-
-
Method Details
-
getNodeName
- Mappings:
Namespace Name Mixin selector official aLtn$a;a()Ljava/lang/String;intermediary method_45046Lnet/minecraft/class_7644$class_7645;method_45046()Ljava/lang/String;named getNodeNameLnet/minecraft/command/argument/SignedArgumentList$ParsedArgument;getNodeName()Ljava/lang/String;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-