Record Class CommandArgumentSigner.Signatures

java.lang.Object
java.lang.Record
net.minecraft.network.encryption.CommandArgumentSigner.Signatures
Record Components:
sender -
timestamp -
argumentSignatures -
signedPreview -
All Implemented Interfaces:
CommandArgumentSigner
Enclosing interface:
CommandArgumentSigner

public static record CommandArgumentSigner.Signatures(UUID sender, Instant timestamp, ArgumentSignatureDataMap argumentSignatures, boolean signedPreview) extends Record implements CommandArgumentSigner
A signature for command arguments, consisting of the sender, the timestamp, and the signature datas for the arguments.
Mappings:
Namespace Name
official dp$a
intermediary net/minecraft/class_7448$class_7449
named net/minecraft/network/encryption/CommandArgumentSigner$Signatures
official b
intermediary comp_775
named sender
official c
intermediary comp_776
named timestamp
official d
intermediary comp_777
named argumentSignatures
official e
intermediary comp_854
named signedPreview
  • Field Details

    • sender

      private final UUID sender
      The field for the sender record component.
    • timestamp

      private final Instant timestamp
      The field for the timestamp record component.
    • argumentSignatures

      private final ArgumentSignatureDataMap argumentSignatures
      The field for the argumentSignatures record component.
    • signedPreview

      private final boolean signedPreview
      The field for the signedPreview record component.
  • Constructor Details

  • Method Details

    • getArgumentSignature

      public ChatMessageSignature getArgumentSignature(String argumentName)
      Specified by:
      getArgumentSignature in interface CommandArgumentSigner
      Mappings:
      Namespace Name Mixin selector
      official getArgumentSignature Ldp;getArgumentSignature(Ljava/lang/String;)Lrr;
      intermediary getArgumentSignature Lnet/minecraft/class_7448;getArgumentSignature(Ljava/lang/String;)Lnet/minecraft/class_7469;
      named getArgumentSignature Lnet/minecraft/network/encryption/CommandArgumentSigner;getArgumentSignature(Ljava/lang/String;)Lnet/minecraft/network/encryption/ChatMessageSignature;
    • isPreviewSigned

      public boolean isPreviewSigned(String argumentName)
      Specified by:
      isPreviewSigned in interface CommandArgumentSigner
      Mappings:
      Namespace Name Mixin selector
      official a Ldp;a(Ljava/lang/String;)Z
      intermediary method_44250 Lnet/minecraft/class_7448;method_44250(Ljava/lang/String;)Z
      named isPreviewSigned Lnet/minecraft/network/encryption/CommandArgumentSigner;isPreviewSigned(Ljava/lang/String;)Z
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • sender

      public UUID sender()
      Returns the value of the sender record component.
      Returns:
      the value of the sender record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • argumentSignatures

      public ArgumentSignatureDataMap argumentSignatures()
      Returns the value of the argumentSignatures record component.
      Returns:
      the value of the argumentSignatures record component
    • signedPreview

      public boolean signedPreview()
      Returns the value of the signedPreview record component.
      Returns:
      the value of the signedPreview record component