C03PacketPlayer
new C03PacketPlayer(boolean onGround)
new C03PacketPlayer(boolean onGround)Constructs a new C03PacketPlayer object with the specified onGround status. onGround is a boolean indicating whether the player is on the ground.
getPositionX(): double
getPositionX(): doubleReturns the player's X-coordinate position.
getPositionY(): double
getPositionY(): doubleReturns the player's Y-coordinate position.
getPositionZ(): double
getPositionZ(): doubleReturns the player's Z-coordinate position.
getYaw(): double
getYaw(): doubleRetrieves the player's yaw, which is the horizontal rotation angle.
getPitch(): double
getPitch(): doubleRetrieves the player's pitch, which is the vertical rotation angle.
isOnGround(): boolean
isOnGround(): booleanDetermines whether the player is on the ground.
isMoving(): boolean
isMoving(): booleanChecks if the player is currently moving.
getRotating(): boolean
getRotating(): booleanDetermines whether the player is rotating.
setOnGround(boolean onGround): void
setOnGround(boolean onGround): voidSets the packet's onGround status.
setPosition(double x, double y, double z): void
setPosition(double x, double y, double z): voidSets the x, y and z for this packet.
If the packet is not an instance of C04PacketPlayerPosition or C06PacketPlayerPosLook setting the position of the packet will not do anything.
setRotation(float yaw, float pitch): void
setRotation(float yaw, float pitch): voidSets the yaw and pitch for this packet.
If the packet is not an instance of C05PacketPlayerLook or C06PacketPlayerPosLook setting the rotations of the packet will not do anything.
Last updated