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/TestInstanceBlockActionC2SPacketintermediary net/minecraft/class_10616official ajbnamed posintermediary comp_3516official bnamed actionintermediary comp_3517official cnamed dataintermediary comp_3518official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestInstanceBlockActionC2SPacket.ActionThe field for theactionrecord component.static final PacketCodec<RegistryByteBuf, TestInstanceBlockActionC2SPacket> private final TestInstanceBlockEntity.DataThe field for thedatarecord component.private final BlockPosThe field for theposrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTestInstanceBlockActionC2SPacket(BlockPos pos, TestInstanceBlockActionC2SPacket.Action actin, Optional<RegistryKey<TestInstance>> optional, Vec3i vec3i, BlockRotation blockRotation, boolean bool) TestInstanceBlockActionC2SPacket(BlockPos blockPos, TestInstanceBlockActionC2SPacket.Action action, TestInstanceBlockEntity.Data data) -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.voidapply(ServerPlayPacketListener serverPlayPacketListener) data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
pos
The field for theposrecord component. -
action
The field for theactionrecord component. -
data
The field for thedatarecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55919Lnet/minecraft/class_10616;field_55919:Lnet/minecraft/class_9139;official aLajb;a:Lze;
-
-
Constructor Details
-
TestInstanceBlockActionC2SPacket
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)Vintermediary <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)Vofficial <init>Lajb;<init>(Liw;Lajb$a;Ljava/util/Optional;Lkb;Ldui;Z)V
-
TestInstanceBlockActionC2SPacket
public TestInstanceBlockActionC2SPacket(BlockPos blockPos, TestInstanceBlockActionC2SPacket.Action action, TestInstanceBlockEntity.Data data)
-
-
Method Details
-
getPacketType
- Specified by:
getPacketTypein interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketTypeLnet/minecraft/network/packet/Packet;getPacketType()Lnet/minecraft/network/packet/PacketType;intermediary method_65080Lnet/minecraft/class_2596;method_65080()Lnet/minecraft/class_9145;official aLzo;a()Lzq;
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)Vintermediary method_66584Lnet/minecraft/class_10616;method_66584(Lnet/minecraft/class_2792;)Vofficial aLajb;a(Laha;)V
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-