Package net.minecraft

Record Class class_10616

java.lang.Object
java.lang.Record
net.minecraft.class_10616
Record Components:
pos -
action -
data -
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public record class_10616(BlockPos pos, class_10616.class_10617 action, class_10638.class_10639 data) extends Record implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/class_10616
intermediary net/minecraft/class_10616
official ain
named pos
intermediary comp_3516
official b
named action
intermediary comp_3517
official c
named data
intermediary comp_3518
official d
  • Field Details

    • pos

      private final BlockPos pos
      The field for the pos record component.
    • action

      private final class_10616.class_10617 action
      The field for the action record component.
    • data

      private final class_10638.class_10639 data
      The field for the data record component.
    • field_55919

      public static final PacketCodec<RegistryByteBuf,class_10616> field_55919
      Mappings:
      Namespace Name Mixin selector
      named field_55919 Lnet/minecraft/class_10616;field_55919:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_55919 Lnet/minecraft/class_10616;field_55919:Lnet/minecraft/class_9139;
      official a Lain;a:Lyt;
  • Constructor Details

  • Method Details

    • getPacketType

      public PacketType<class_10616> getPacketType()
      Specified by:
      getPacketType in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketType Lnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;
      intermediary method_65080 Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;
      official a Lzc;a()Lze;
    • apply

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/class_10616;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_66584 Lnet/minecraft/class_10616;method_66584(Lnet/minecraft/class_2792;)V
      official a Lain;a(Lagm;)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.
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • action

      public class_10616.class_10617 action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • data

      public class_10638.class_10639 data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component