Class PlayerActionC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class PlayerActionC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official tr
intermediary net/minecraft/class_2846
named net/minecraft/network/packet/c2s/play/PlayerActionC2SPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerActionC2SPacket.Action
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerActionC2SPacket()
PlayerActionC2SPacket(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
PlayerActionC2SPacket.Action
getAction()
Direction
getDirection()
BlockPos
getPos()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
pos
- Mappings:
Namespace Name Mixin selector official a
Ltr;a:Lfx;
intermediary field_12967
Lnet/minecraft/class_2846;field_12967:Lnet/minecraft/class_2338;
named pos
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;pos:Lnet/minecraft/util/math/BlockPos;
-
direction
- Mappings:
Namespace Name Mixin selector official b
Ltr;b:Lgc;
intermediary field_12965
Lnet/minecraft/class_2846;field_12965:Lnet/minecraft/class_2350;
named direction
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;direction:Lnet/minecraft/util/math/Direction;
-
action
- Mappings:
Namespace Name Mixin selector official c
Ltr;c:Ltr$a;
intermediary field_12966
Lnet/minecraft/class_2846;field_12966:Lnet/minecraft/class_2846$class_2847;
named action
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
-
-
Constructor Details
-
PlayerActionC2SPacket
public PlayerActionC2SPacket() -
PlayerActionC2SPacket
@Environment(CLIENT) public PlayerActionC2SPacket(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction)- Mappings:
Namespace Name Mixin selector official <init>
Ltr;<init>(Ltr$a;Lfx;Lgc;)V
intermediary <init>
Lnet/minecraft/class_2846;<init>(Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)V
named <init>
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;<init>(Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Ltr;a(Lss;)V
intermediary method_12361
Lnet/minecraft/class_2846;method_12361(Lnet/minecraft/class_2792;)V
named apply
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
getPos
- Mappings:
Namespace Name Mixin selector official b
Ltr;b()Lfx;
intermediary method_12362
Lnet/minecraft/class_2846;method_12362()Lnet/minecraft/class_2338;
named getPos
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getPos()Lnet/minecraft/util/math/BlockPos;
-
getDirection
- Mappings:
Namespace Name Mixin selector official c
Ltr;c()Lgc;
intermediary method_12360
Lnet/minecraft/class_2846;method_12360()Lnet/minecraft/class_2350;
named getDirection
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getDirection()Lnet/minecraft/util/math/Direction;
-
getAction
- Mappings:
Namespace Name Mixin selector official d
Ltr;d()Ltr$a;
intermediary method_12363
Lnet/minecraft/class_2846;method_12363()Lnet/minecraft/class_2846$class_2847;
named getAction
Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
-