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, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintint@NonNull PlayerStategetState()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ServerboundPlayerCommandPacketwithEntityId(int entityId) @NonNull ServerboundPlayerCommandPacketwithJumpBoost(int jumpBoost) @NonNull ServerboundPlayerCommandPacketwithState(@NonNull PlayerState state) 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, isTerminal
-
Constructor Details
-
ServerboundPlayerCommandPacket
-
ServerboundPlayerCommandPacket
-
ServerboundPlayerCommandPacket
public ServerboundPlayerCommandPacket(int entityId, @NonNull @NonNull PlayerState state, int jumpBoost)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getState
-
getJumpBoost
public int getJumpBoost() -
equals
-
canEqual
-
hashCode
public int 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).
-