Class ServerboundPlayerActionPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundPlayerActionPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundPlayerActionPacket(@NonNull PlayerAction action, int x, int y, int z, @NonNull Direction face, int sequence) ServerboundPlayerActionPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull PlayerAction@NonNull DirectiongetFace()intintgetX()intgetY()intgetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundPlayerActionPacketwithAction(@NonNull PlayerAction action) @NonNull ServerboundPlayerActionPacket@NonNull ServerboundPlayerActionPacketwithSequence(int sequence) @NonNull ServerboundPlayerActionPacketwithX(int x) @NonNull ServerboundPlayerActionPacketwithY(int y) @NonNull ServerboundPlayerActionPacketwithZ(int z) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ServerboundPlayerActionPacket
-
ServerboundPlayerActionPacket
public ServerboundPlayerActionPacket(@NonNull @NonNull PlayerAction action, int x, int y, int z, @NonNull @NonNull Direction face, int sequence)
-
-
Method Details
-
serialize
- 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
public int 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).
-