Package net.minecraft.command.argument
Record Class DecoratableArgumentList<S>
java.lang.Object
java.lang.Record
net.minecraft.command.argument.DecoratableArgumentList<S>
- Record Components:
arguments
-
public record DecoratableArgumentList<S>(List<DecoratableArgumentList.ParsedArgument<S>> arguments)
extends Record
A list of parsed decoratable arguments.
- See Also:
- Mappings:
Namespace Name official se
intermediary net/minecraft/class_7644
named net/minecraft/command/argument/DecoratableArgumentList
official a
intermediary comp_974
named arguments
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
A parsed decoratable argument, also used as the entry ofDecoratableArgumentList
. -
Field Summary
Modifier and TypeFieldDescriptionprivate final List<DecoratableArgumentList.ParsedArgument<S>>
The field for thearguments
record component. -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearguments
record component.private static <S> List<DecoratableArgumentList.ParsedArgument<S>>
collectDecoratableArguments
(com.mojang.brigadier.context.CommandContextBuilder<S> contextBuilder) boolean
contains
(com.mojang.brigadier.tree.CommandNode<?> node) Returns whethernode
is in this list of parsed decorated arguments.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static <S> DecoratableArgumentList<S>
of
(com.mojang.brigadier.ParseResults<S> parseResults) Returns a new instance of this list fromparseResults
.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
arguments
The field for thearguments
record component.
-
-
Constructor Details
-
DecoratableArgumentList
-
-
Method Details
-
of
Returns a new instance of this list fromparseResults
.- Returns:
- a new instance of this list from
parseResults
- Mappings:
Namespace Name Mixin selector official a
Lse;a(Lcom/mojang/brigadier/ParseResults;)Lse;
intermediary method_45043
Lnet/minecraft/class_7644;method_45043(Lcom/mojang/brigadier/ParseResults;)Lnet/minecraft/class_7644;
named of
Lnet/minecraft/command/argument/DecoratableArgumentList;of(Lcom/mojang/brigadier/ParseResults;)Lnet/minecraft/command/argument/DecoratableArgumentList;
-
collectDecoratableArguments
private static <S> List<DecoratableArgumentList.ParsedArgument<S>> collectDecoratableArguments(com.mojang.brigadier.context.CommandContextBuilder<S> contextBuilder) - Mappings:
Namespace Name Mixin selector official a
Lse;a(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
intermediary method_45044
Lnet/minecraft/class_7644;method_45044(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
named collectDecoratableArguments
Lnet/minecraft/command/argument/DecoratableArgumentList;collectDecoratableArguments(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
-
contains
public boolean contains(com.mojang.brigadier.tree.CommandNode<?> node) Returns whethernode
is in this list of parsed decorated arguments.- Returns:
- whether
node
is in this list of parsed decorated arguments - Mappings:
Namespace Name Mixin selector official a
Lse;a(Lcom/mojang/brigadier/tree/CommandNode;)Z
intermediary method_45045
Lnet/minecraft/class_7644;method_45045(Lcom/mojang/brigadier/tree/CommandNode;)Z
named contains
Lnet/minecraft/command/argument/DecoratableArgumentList;contains(Lcom/mojang/brigadier/tree/CommandNode;)Z
-
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)
. -
arguments
Returns the value of thearguments
record component.- Returns:
- the value of the
arguments
record component
-