Class ServerboundPlayerCommandPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.player.ServerboundPlayerCommandPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundPlayerCommandPacket(int entityId, @NonNull PlayerState state, int jumpBoost) ServerboundPlayerCommandPacket(int entityId, PlayerState state) ServerboundPlayerCommandPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintint@NonNull PlayerStategetState()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundPlayerCommandPacketwithEntityId(int entityId) @NonNull ServerboundPlayerCommandPacketwithJumpBoost(int jumpBoost) @NonNull ServerboundPlayerCommandPacketwithState(@NonNull PlayerState state) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundPlayerCommandPacket
-
ServerboundPlayerCommandPacket
public ServerboundPlayerCommandPacket(io.netty.buffer.ByteBuf in) -
ServerboundPlayerCommandPacket
public ServerboundPlayerCommandPacket(int entityId, @NonNull @NonNull PlayerState state, int jumpBoost)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getState
-
getJumpBoost
public int getJumpBoost() -
equals
-
canEqual
-
hashCode
-
toString
-
withEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withState
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withJumpBoost
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-