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
named net/minecraft/network/message/MessageSignatureData$Indexed
intermediary net/minecraft/class_7469$class_7819
official yb$a
named id
intermediary comp_1079
official b
named fullSignature
intermediary comp_1080
official c
  • 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
      named MISSING_ID Lnet/minecraft/network/message/MessageSignatureData$Indexed;MISSING_ID:I
      intermediary field_40684 Lnet/minecraft/class_7469$class_7819;field_40684:I
      official a Lyb$a;a:I
  • Constructor Details

    • Indexed

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

      public Indexed(int id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/message/MessageSignatureData$Indexed;<init>(I)V
      intermediary <init> Lnet/minecraft/class_7469$class_7819;<init>(I)V
      official <init> Lyb$a;<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
      named fromBuf Lnet/minecraft/network/message/MessageSignatureData$Indexed;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/message/MessageSignatureData$Indexed;
      intermediary method_46278 Lnet/minecraft/class_7469$class_7819;method_46278(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7469$class_7819;
      official a Lyb$a;a(Lwm;)Lyb$a;
    • write

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

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