Package net.minecraft

Record Class class_10371

java.lang.Object
java.lang.Record
net.minecraft.class_10371
Record Components:
id -
includeData -
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public record class_10371(int id, boolean includeData) extends Record implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/class_10371
intermediary net/minecraft/class_10371
official aie
named id
intermediary comp_3328
official b
named includeData
intermediary comp_3329
official c
  • Field Details

    • id

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

      private final boolean includeData
      The field for the includeData record component.
    • field_54986

      public static final PacketCodec<ByteBuf,class_10371> field_54986
      Mappings:
      Namespace Name Mixin selector
      named field_54986 Lnet/minecraft/class_10371;field_54986:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54986 Lnet/minecraft/class_10371;field_54986:Lnet/minecraft/class_9139;
      official a Laie;a:Lzi;
  • Constructor Details

    • class_10371

      public class_10371(int int2, boolean bool)
  • Method Details

    • method_65080

      public PacketType<class_10371> method_65080()
      Specified by:
      method_65080 in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named method_65080 Lnet/minecraft/network/packet/Packet;method_65080()Lnet/minecraft/network/packet/PacketType;
      intermediary method_65080 Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;
      official a Lzr;a()Lzt;
    • method_65081

      public void method_65081(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      method_65081 in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named method_65081 Lnet/minecraft/class_10371;method_65081(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_65087 Lnet/minecraft/class_10371;method_65087(Lnet/minecraft/class_2792;)V
      official a Laie;a(Lahb;)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 '=='.
      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
    • includeData

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