Record Class SignedArgumentList<S>

java.lang.Object
java.lang.Record
net.minecraft.command.argument.SignedArgumentList<S>
Record Components:
arguments -

public record SignedArgumentList<S>(List<SignedArgumentList.ParsedArgument<S>> arguments) extends Record
A list of parsed signed arguments.
See Also:
Mappings:
Namespace Name
named net/minecraft/command/argument/SignedArgumentList
intermediary net/minecraft/class_7644
official yn
named arguments
intermediary comp_974
official a
  • Field Details

  • Constructor Details

  • Method Details

    • isNotEmpty

      public static <S> boolean isNotEmpty(com.mojang.brigadier.ParseResults<S> parseResults)
      Mappings:
      Namespace Name Mixin selector
      named isNotEmpty Lnet/minecraft/command/argument/SignedArgumentList;isNotEmpty(Lcom/mojang/brigadier/ParseResults;)Z
      intermediary method_58774 Lnet/minecraft/class_7644;method_58774(Lcom/mojang/brigadier/ParseResults;)Z
      official a Lyn;a(Lcom/mojang/brigadier/ParseResults;)Z
    • of

      public static <S> SignedArgumentList<S> of(com.mojang.brigadier.ParseResults<S> parseResults)
      Returns a new instance of this list from parseResults.
      Returns:
      a new instance of this list from parseResults
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/command/argument/SignedArgumentList;of(Lcom/mojang/brigadier/ParseResults;)Lnet/minecraft/command/argument/SignedArgumentList;
      intermediary method_45043 Lnet/minecraft/class_7644;method_45043(Lcom/mojang/brigadier/ParseResults;)Lnet/minecraft/class_7644;
      official b Lyn;b(Lcom/mojang/brigadier/ParseResults;)Lyn;
    • collectDecoratableArguments

      private static <S> List<SignedArgumentList.ParsedArgument<S>> collectDecoratableArguments(String argumentName, com.mojang.brigadier.context.CommandContextBuilder<S> builder)
      Mappings:
      Namespace Name Mixin selector
      named collectDecoratableArguments Lnet/minecraft/command/argument/SignedArgumentList;collectDecoratableArguments(Ljava/lang/String;Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
      intermediary method_45044 Lnet/minecraft/class_7644;method_45044(Ljava/lang/String;Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
      official a Lyn;a(Ljava/lang/String;Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
    • get

      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/command/argument/SignedArgumentList;get(Ljava/lang/String;)Lnet/minecraft/command/argument/SignedArgumentList$ParsedArgument;
      intermediary method_58775 Lnet/minecraft/class_7644;method_58775(Ljava/lang/String;)Lnet/minecraft/class_7644$class_7645;
      official a Lyn;a(Ljava/lang/String;)Lyn$a;
    • toString

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • arguments

      Returns the value of the arguments record component.
      Returns:
      the value of the arguments record component