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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestInstanceBlockActionC2SPacket.Action
The field for theaction
record component.static final PacketCodec
<RegistryByteBuf, TestInstanceBlockActionC2SPacket> private final TestInstanceBlockEntity.Data
The field for thedata
record component.private final BlockPos
The field for thepos
record 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 theaction
record component.void
apply
(ServerPlayPacketListener serverPlayPacketListener) data()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
pos
The field for thepos
record component. -
action
The field for theaction
record component. -
data
The field for thedata
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/c2s/play/TestInstanceBlockActionC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_55919
Lnet/minecraft/class_10616;field_55919:Lnet/minecraft/class_9139;
official a
Lajb;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)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
public TestInstanceBlockActionC2SPacket(BlockPos blockPos, TestInstanceBlockActionC2SPacket.Action action, TestInstanceBlockEntity.Data data)
-
-
Method Details
-
getPacketType
- Specified by:
getPacketType
in interfacePacket<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
- Specified by:
apply
in interfacePacket<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
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 thepos
record component.- Returns:
- the value of the
pos
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
data
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-