Record Class MessageSignatureData.Indexed

java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageSignatureData.Indexed
Record Components:
id -
fullSignature -
Enclosing class:
MessageSignatureData

public static record MessageSignatureData.Indexed(int id, @Nullable MessageSignatureData fullSignature) extends Record
Mappings:
Namespace Name
official th$a
intermediary net/minecraft/class_7469$class_7819
named net/minecraft/network/message/MessageSignatureData$Indexed
official b
intermediary comp_1079
named id
official c
intermediary comp_1080
named fullSignature
  • Field Details

    • id

      private final int id
      The field for the id record component.
    • fullSignature

      @Nullable private final @Nullable MessageSignatureData fullSignature
      The field for the fullSignature record component.
    • MISSING_ID

      public static final int MISSING_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lth$a;a:I
      intermediary field_40684 Lnet/minecraft/class_7469$class_7819;field_40684:I
      named MISSING_ID Lnet/minecraft/network/message/MessageSignatureData$Indexed;MISSING_ID:I
  • Constructor Details

    • Indexed

      public Indexed(MessageSignatureData signature)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth$a;<init>(Lth;)V
      intermediary <init> Lnet/minecraft/class_7469$class_7819;<init>(Lnet/minecraft/class_7469;)V
      named <init> Lnet/minecraft/network/message/MessageSignatureData$Indexed;<init>(Lnet/minecraft/network/message/MessageSignatureData;)V
    • Indexed

      public Indexed(int id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth$a;<init>(I)V
      intermediary <init> Lnet/minecraft/class_7469$class_7819;<init>(I)V
      named <init> Lnet/minecraft/network/message/MessageSignatureData$Indexed;<init>(I)V
    • Indexed

      public Indexed(int int2, @Nullable @Nullable MessageSignatureData messageSignatureData)
  • Method Details

    • fromBuf

      public static MessageSignatureData.Indexed fromBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lth$a;a(Lsf;)Lth$a;
      intermediary method_46278 Lnet/minecraft/class_7469$class_7819;method_46278(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7469$class_7819;
      named fromBuf Lnet/minecraft/network/message/MessageSignatureData$Indexed;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/message/MessageSignatureData$Indexed;
    • write

      public static void write(PacketByteBuf buf, MessageSignatureData.Indexed indexed)
      Mappings:
      Namespace Name Mixin selector
      official a Lth$a;a(Lsf;Lth$a;)V
      intermediary method_46279 Lnet/minecraft/class_7469$class_7819;method_46279(Lnet/minecraft/class_2540;Lnet/minecraft/class_7469$class_7819;)V
      named write Lnet/minecraft/network/message/MessageSignatureData$Indexed;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/network/message/MessageSignatureData$Indexed;)V
    • getSignature

      public Optional<MessageSignatureData> getSignature(MessageSignatureStorage storage)
      Mappings:
      Namespace Name Mixin selector
      official a Lth$a;a(Lti;)Ljava/util/Optional;
      intermediary method_46280 Lnet/minecraft/class_7469$class_7819;method_46280(Lnet/minecraft/class_7561;)Ljava/util/Optional;
      named getSignature Lnet/minecraft/network/message/MessageSignatureData$Indexed;getSignature(Lnet/minecraft/network/message/MessageSignatureStorage;)Ljava/util/Optional;
    • 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.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • fullSignature

      @Nullable public @Nullable MessageSignatureData fullSignature()
      Returns the value of the fullSignature record component.
      Returns:
      the value of the fullSignature record component