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 Details

    • node

      private final com.mojang.brigadier.tree.ArgumentCommandNode<S,?> node
      The field for the node record component.
    • parsedValue

      private final com.mojang.brigadier.context.ParsedArgument<S,?> parsedValue
      The field for the parsedValue record component.
    • argumentType

      private final DecoratableArgumentType<?> argumentType
      The field for the argumentType 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

      public String 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

      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.
    • node

      public com.mojang.brigadier.tree.ArgumentCommandNode<S,?> node()
      Returns the value of the node record component.
      Returns:
      the value of the node record component
    • parsedValue

      public com.mojang.brigadier.context.ParsedArgument<S,?> parsedValue()
      Returns the value of the parsedValue record component.
      Returns:
      the value of the parsedValue record component
    • argumentType

      public DecoratableArgumentType<?> argumentType()
      Returns the value of the argumentType record component.
      Returns:
      the value of the argumentType record component