Package net.minecraft

Record Class class_9150

java.lang.Object
java.lang.Record
net.minecraft.class_9150
Record Components:
key -
payload -
All Implemented Interfaces:
Packet<ClientCommonPacketListener>

public record class_9150(Identifier key, byte[] payload) extends Record implements Packet<ClientCommonPacketListener>
Mappings:
Namespace Name
official yk
intermediary net/minecraft/class_9150
named net/minecraft/class_9150
official c
intermediary comp_2238
named key
official d
intermediary comp_2239
named payload
  • Field Details

    • key

      private final Identifier key
      The field for the key record component.
    • payload

      private final byte[] payload
      The field for the payload record component.
    • field_48627

      public static final PacketCodec<PacketByteBuf,class_9150> field_48627
      Mappings:
      Namespace Name Mixin selector
      official a Lyk;a:Lxo;
      intermediary field_48627 Lnet/minecraft/class_9150;field_48627:Lnet/minecraft/class_9139;
      named field_48627 Lnet/minecraft/class_9150;field_48627:Lnet/minecraft/network/codec/PacketCodec;
    • field_48628

      public static final int field_48628
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lyk;b:I
      intermediary field_48628 Lnet/minecraft/class_9150;field_48628:I
      named field_48628 Lnet/minecraft/class_9150;field_48628:I
  • Constructor Details

    • class_9150

      private class_9150(PacketByteBuf packetByteBuf)
    • class_9150

      public class_9150(Identifier identifier, byte[] byte2)
  • Method Details

    • method_56467

      private void method_56467(PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official a Lyk;a(Luq;)V
      intermediary method_56467 Lnet/minecraft/class_9150;method_56467(Lnet/minecraft/class_2540;)V
      named method_56467 Lnet/minecraft/class_9150;method_56467(Lnet/minecraft/network/PacketByteBuf;)V
    • method_55846

      public class_9145<class_9150> method_55846()
      Specified by:
      method_55846 in interface Packet<ClientCommonPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lxx;a()Lxz;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      named method_55846 Lnet/minecraft/network/packet/Packet;method_55846()Lnet/minecraft/class_9145;
    • apply

      public void apply(ClientCommonPacketListener clientCommonPacketListener)
      Specified by:
      apply in interface Packet<ClientCommonPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lyk;a(Lyd;)V
      intermediary method_56468 Lnet/minecraft/class_9150;method_56468(Lnet/minecraft/class_8705;)V
      named apply Lnet/minecraft/class_9150;apply(Lnet/minecraft/network/listener/ClientCommonPacketListener;)V
    • 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.
    • key

      public Identifier key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • payload

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