Record Class MessageSignatureData

java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageSignatureData
Record Components:
data -

public record MessageSignatureData(byte[] data) extends Record
A message signature data that can be verified.
Mappings:
Namespace Name
named net/minecraft/network/message/MessageSignatureData
intermediary net/minecraft/class_7469
official yh
named data
intermediary comp_925
official c
  • Field Details

    • data

      private final byte[] data
      The field for the data record component.
    • CODEC

      public static final com.mojang.serialization.Codec<MessageSignatureData> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/message/MessageSignatureData;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_40844 Lnet/minecraft/class_7469;field_40844:Lcom/mojang/serialization/Codec;
      official a Lyh;a:Lcom/mojang/serialization/Codec;
    • SIZE

      public static final int SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SIZE Lnet/minecraft/network/message/MessageSignatureData;SIZE:I
      intermediary field_40683 Lnet/minecraft/class_7469;field_40683:I
      official b Lyh;b:I
  • Constructor Details

    • MessageSignatureData

      public MessageSignatureData(byte[] byte2)
  • Method Details

    • fromBuf

      public static MessageSignatureData fromBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named fromBuf Lnet/minecraft/network/message/MessageSignatureData;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/message/MessageSignatureData;
      intermediary method_46276 Lnet/minecraft/class_7469;method_46276(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7469;
      official a Lyh;a(Lws;)Lyh;
    • write

      public static void write(PacketByteBuf buf, MessageSignatureData signature)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/message/MessageSignatureData;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/network/message/MessageSignatureData;)V
      intermediary method_44845 Lnet/minecraft/class_7469;method_44845(Lnet/minecraft/class_2540;Lnet/minecraft/class_7469;)V
      official a Lyh;a(Lws;Lyh;)V
    • verify

      public boolean verify(SignatureVerifier verifier, SignatureUpdatable updatable)
      Returns whether the signature data is verified.
      Parameters:
      verifier - the verifier that is created with the sender's public key
      Returns:
      whether the signature data is verified
      Mappings:
      Namespace Name Mixin selector
      named verify Lnet/minecraft/network/message/MessageSignatureData;verify(Lnet/minecraft/network/encryption/SignatureVerifier;Lnet/minecraft/network/encryption/SignatureUpdatable;)Z
      intermediary method_44843 Lnet/minecraft/class_7469;method_44843(Lnet/minecraft/class_7500;Lnet/minecraft/class_7498;)Z
      official a Lyh;a(Lbar;Lbaq;)Z
    • toByteBuffer

      public ByteBuffer toByteBuffer()
      Returns the byte buffer containing the signature data.
      Returns:
      the byte buffer containing the signature data
      Mappings:
      Namespace Name Mixin selector
      named toByteBuffer Lnet/minecraft/network/message/MessageSignatureData;toByteBuffer()Ljava/nio/ByteBuffer;
      intermediary method_44994 Lnet/minecraft/class_7469;method_44994()Ljava/nio/ByteBuffer;
      official a Lyh;a()Ljava/nio/ByteBuffer;
    • equals

      public boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public 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
    • toString

      public 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
    • pack

      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/network/message/MessageSignatureData;pack(Lnet/minecraft/network/message/MessageSignatureStorage;)Lnet/minecraft/network/message/MessageSignatureData$Indexed;
      intermediary method_46277 Lnet/minecraft/class_7469;method_46277(Lnet/minecraft/class_7561;)Lnet/minecraft/class_7469$class_7819;
      official a Lyh;a(Lyi;)Lyh$a;
    • data

      public byte[] data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component