Record Class SignedCommandArguments.Impl

java.lang.Object
java.lang.Record
net.minecraft.network.message.SignedCommandArguments.Impl
Record Components:
arguments -
All Implemented Interfaces:
SignedCommandArguments
Enclosing interface:
SignedCommandArguments

public static record SignedCommandArguments.Impl(Map<String,SignedMessage> arguments) extends Record implements SignedCommandArguments
A basic implementation of SignedCommandArguments.
Mappings:
Namespace Name
official dl$a
intermediary net/minecraft/class_7448$class_7449
named net/minecraft/network/message/SignedCommandArguments$Impl
official b
intermediary comp_971
named arguments
  • Field Details

  • Constructor Details

  • Method Details

    • getMessage

      @Nullable public @Nullable SignedMessage getMessage(String argumentName)
      Specified by:
      getMessage in interface SignedCommandArguments
      Mappings:
      Namespace Name Mixin selector
      official a Ldl;a(Ljava/lang/String;)Lth;
      intermediary method_44907 Lnet/minecraft/class_7448;method_44907(Ljava/lang/String;)Lnet/minecraft/class_7471;
      named getMessage Lnet/minecraft/network/message/SignedCommandArguments;getMessage(Ljava/lang/String;)Lnet/minecraft/network/message/SignedMessage;
    • 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

      public Map<String,SignedMessage> arguments()
      Returns the value of the arguments record component.
      Returns:
      the value of the arguments record component