Record Class TestInstanceBlockActionC2SPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.TestInstanceBlockActionC2SPacket
Record Components:
pos -
action -
data -
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public record TestInstanceBlockActionC2SPacket(BlockPos pos, TestInstanceBlockActionC2SPacket.Action action, TestInstanceBlockEntity.Data data) extends Record implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket
intermediary net/minecraft/class_10616
official ajb
named pos
intermediary comp_3516
official b
named action
intermediary comp_3517
official c
named data
intermediary comp_3518
official d
  • Field Details Link icon

  • Constructor Details Link icon

    • TestInstanceBlockActionC2SPacket Link icon

      public TestInstanceBlockActionC2SPacket(BlockPos pos, TestInstanceBlockActionC2SPacket.Action actin, Optional<RegistryKey<TestInstance>> optional, Vec3i vec3i, BlockRotation blockRotation, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket$Action;Ljava/util/Optional;Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/BlockRotation;Z)V
      intermediary <init> Lnet/minecraft/class_10616;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_10616$class_10617;Ljava/util/Optional;Lnet/minecraft/class_2382;Lnet/minecraft/class_2470;Z)V
      official <init> Lajb;<init>(Liw;Lajb$a;Ljava/util/Optional;Lkb;Ldui;Z)V
    • TestInstanceBlockActionC2SPacket Link icon

      public TestInstanceBlockActionC2SPacket(BlockPos blockPos, TestInstanceBlockActionC2SPacket.Action action, TestInstanceBlockEntity.Data data)
  • Method Details Link icon

    • getPacketType Link icon

      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 Lzo;a()Lzq;
    • apply Link icon

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_66584 Lnet/minecraft/class_10616;method_66584(Lnet/minecraft/class_2792;)V
      official a Lajb;a(Laha;)V
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • data Link icon

      Returns the value of the data record component.
      Returns:
      the value of the data record component