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$aintermediary net/minecraft/class_7644$class_7645named net/minecraft/command/argument/DecoratableArgumentList$ParsedArgumentofficial aintermediary comp_975named nodeofficial bintermediary comp_976named parsedValueofficial cintermediary comp_977named argumentType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DecoratableArgumentType<?>The field for theargumentTyperecord component.private final com.mojang.brigadier.tree.ArgumentCommandNode<S,?> The field for thenoderecord component.private final com.mojang.brigadier.context.ParsedArgument<S,?> The field for theparsedValuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParsedArgument(com.mojang.brigadier.tree.ArgumentCommandNode<S, ?> argumentCommandNode, com.mojang.brigadier.context.ParsedArgument<S, ?> parsedArgument, DecoratableArgumentType<?> decoratableArgumentType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentTyperecord component.final 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.com.mojang.brigadier.context.ParsedArgument<S,?> Returns the value of theparsedValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
node
The field for thenoderecord component. -
parsedValue
The field for theparsedValuerecord component. -
argumentType
The field for theargumentTyperecord 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 aLse$a;a()Ljava/lang/String;intermediary method_45046Lnet/minecraft/class_7644$class_7645;method_45046()Ljava/lang/String;named getNodeNameLnet/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 thenoderecord component.- Returns:
- the value of the
noderecord component
-
parsedValue
Returns the value of theparsedValuerecord component.- Returns:
- the value of the
parsedValuerecord component
-
argumentType
Returns the value of theargumentTyperecord component.- Returns:
- the value of the
argumentTyperecord component
-