Class ServerboundPlayerActionPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundPlayerActionPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundPlayerActionPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionServerboundPlayerActionPacket
(FriendlyByteBuf p_179711_) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action p_134272_, BlockPos p_134273_, Direction p_134274_) ServerboundPlayerActionPacket
(ServerboundPlayerActionPacket.Action p_237983_, BlockPos p_237984_, Direction p_237985_, int p_237986_) -
Method Summary
Modifier and TypeMethodDescriptiongetPos()
int
void
handle
(ServerGamePacketListener p_134280_) void
write
(FriendlyByteBuf p_134283_) 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.protocol.Packet
isSkippable, nextProtocol
-
Field Details
-
pos
-
direction
-
action
-
sequence
private final int sequence
-
-
Constructor Details
-
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action p_237983_, BlockPos p_237984_, Direction p_237985_, int p_237986_) -
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action p_134272_, BlockPos p_134273_, Direction p_134274_) -
ServerboundPlayerActionPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getPos
-
getDirection
-
getAction
-
getSequence
public int getSequence()
-