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>
-
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
-
direction
-
action
-
-
Constructor Details
-
PlayerActionC2SPacket
public PlayerActionC2SPacket() -
PlayerActionC2SPacket
@Environment(CLIENT) public PlayerActionC2SPacket(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction)
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
-
getPos
-
getDirection
-
getAction
-