Package net.minecraft.command.argument
Record Class DecoratableArgumentList.ParsedArgument<S>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.DecoratableArgumentList.ParsedArgument<S>
- Record Components:
node
-parsedValue
-argumentType
-
- Enclosing class:
DecoratableArgumentList<S>
public static record DecoratableArgumentList.ParsedArgument<S>(com.mojang.brigadier.tree.ArgumentCommandNode<S,?> node, com.mojang.brigadier.context.ParsedArgument<S,?> parsedValue, DecoratableArgumentType<?> argumentType)
extends Record
A parsed decoratable argument, also used as the entry of
DecoratableArgumentList
.- Mappings:
Namespace Name official se$a
intermediary net/minecraft/class_7644$class_7645
named net/minecraft/command/argument/DecoratableArgumentList$ParsedArgument
official a
intermediary comp_975
named node
official b
intermediary comp_976
named parsedValue
official c
intermediary comp_977
named argumentType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DecoratableArgumentType<?>
The field for theargumentType
record component.private final com.mojang.brigadier.tree.ArgumentCommandNode<S,
?> The field for thenode
record component.private final com.mojang.brigadier.context.ParsedArgument<S,
?> The field for theparsedValue
record component. -
Constructor Summary
ConstructorDescriptionParsedArgument
(com.mojang.brigadier.tree.ArgumentCommandNode<S, ?> argumentCommandNode, com.mojang.brigadier.context.ParsedArgument<S, ?> parsedArgument, DecoratableArgumentType<?> decoratableArgumentType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentType
record component.final 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.com.mojang.brigadier.context.ParsedArgument<S,
?> Returns the value of theparsedValue
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
node
The field for thenode
record component. -
parsedValue
The field for theparsedValue
record component. -
argumentType
The field for theargumentType
record component.
-
-
Constructor Details
-
ParsedArgument
public ParsedArgument(com.mojang.brigadier.tree.ArgumentCommandNode<S, ?> argumentCommandNode, com.mojang.brigadier.context.ParsedArgument<S, ?> parsedArgument, DecoratableArgumentType<?> decoratableArgumentType)
-
-
Method Details
-
getNodeName
- Mappings:
Namespace Name Mixin selector official a
Lse$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/DecoratableArgumentList$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
-
parsedValue
Returns the value of theparsedValue
record component.- Returns:
- the value of the
parsedValue
record component
-
argumentType
Returns the value of theargumentType
record component.- Returns:
- the value of the
argumentType
record component
-