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 ua$a
intermediary net/minecraft/class_7644$class_7645
named net/minecraft/command/argument/SignedArgumentList$ParsedArgument
official a
intermediary comp_975
named node
official b
intermediary comp_1089
named value
-
Field Summary
-
Constructor Summary
ConstructorDescriptionParsedArgument
(com.mojang.brigadier.tree.ArgumentCommandNode<S, ?> argumentCommandNode, String string) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.mojang.brigadier.tree.ArgumentCommandNode<S,
?> node()
Returns the value of thenode
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
Constructor Details
-
ParsedArgument
-
-
Method Details
-
getNodeName
- Mappings:
Namespace Name Mixin selector official a
Lua$a;a()Ljava/lang/String;
intermediary method_45046
Lnet/minecraft/class_7644$class_7645;method_45046()Ljava/lang/String;
named getNodeName
Lnet/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 thenode
record component.- Returns:
- the value of the
node
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-