Class ServerboundPlayerActionPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundPlayerActionPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundPlayerActionPacket(io.netty.buffer.ByteBuf in) ServerboundPlayerActionPacket(PlayerAction action, int x, int y, int z, Direction face, int sequence) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetFace()intintgetX()intgetY()intgetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundPlayerActionPacketwithAction(PlayerAction action) @NonNull ServerboundPlayerActionPacket@NonNull ServerboundPlayerActionPacketwithSequence(int sequence) @NonNull ServerboundPlayerActionPacketwithX(int x) @NonNull ServerboundPlayerActionPacketwithY(int y) @NonNull ServerboundPlayerActionPacketwithZ(int z) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(io.netty.buffer.ByteBuf in) -
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(PlayerAction action, int x, int y, int z, Direction face, int sequence)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getAction
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getFace
-
getSequence
public int getSequence() -
equals
-
canEqual
-
hashCode
-
toString
-
withAction
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFace
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSequence
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-