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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerboundPlayerActionPacket.Actionprivate final Directionprivate final BlockPosprivate final intstatic final StreamCodec<FriendlyByteBuf, ServerboundPlayerActionPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction) ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction, int sequence) -
Method Summary
Modifier and TypeMethodDescriptiongetPos()intvoidhandle(ServerGamePacketListener listener) type()private voidwrite(FriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
pos
-
direction
-
action
-
sequence
private final int sequence
-
-
Constructor Details
-
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction, int sequence) -
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(ServerboundPlayerActionPacket.Action action, BlockPos pos, Direction direction) -
ServerboundPlayerActionPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ServerGamePacketListener>
-
getPos
-
getDirection
-
getAction
-
getSequence
public int getSequence()
-