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
Modifier and TypeFieldDescriptionprivate final ServerboundPlayerActionPacket.Action
private final Direction
private final BlockPos
private final int
static final StreamCodec
<FriendlyByteBuf, ServerboundPlayerActionPacket> -
Constructor Summary
ModifierConstructorDescriptionprivate
ServerboundPlayerActionPacket
(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_) type()
private 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, isTerminal
-
Field Details
-
STREAM_CODEC
-
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
-
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getPos
-
getDirection
-
getAction
-
getSequence
public int getSequence()
-