C0CPacketInput
new C0CPacketInput(float strafe, float forward, boolean jumping, boolean sneaking)
new C0CPacketInput(float strafe, float forward, boolean jumping, boolean sneaking)Constructs a new C0CPacketInput object with specified strafe speed, forward speed, and player states for jumping and sneaking. strafe and forward are float values representing the player's movement speeds in respective directions, while jumping and sneaking are boolean values indicating whether the player is jumping or sneaking.
getStrafe(): float
getStrafe(): floatReturns the strafe speed of the player. This is a float value representing the speed at which the player is strafing.
getForward(): float
getForward(): floatReturns the forward speed of the player. This is a float value representing the speed at which the player is moving forward.
isJumping(): boolean
isJumping(): booleanDetermines whether the player is currently jumping. Returns true if the player is in the act of jumping, false otherwise.
isSneaking(): boolean
isSneaking(): booleanDetermines whether the player is currently sneaking. Returns true if the player is in the act of sneaking, false otherwise.
setStrafe(float strafe): void
setStrafe(float strafe): voidsetForward(float forward): void
setForward(float forward): voidsetJumping(boolean jumping): void
setJumping(boolean jumping): voidsetSneaking(boolean sneaking): void
setSneaking(boolean sneaking): voidLast updated