C03PacketPlayer

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

Returns the player's X-coordinate position.

getPositionY(): double

Returns the player's Y-coordinate position.

getPositionZ(): double

Returns the player's Z-coordinate position.

getYaw(): double

Retrieves the player's yaw, which is the horizontal rotation angle.

getPitch(): double

Retrieves the player's pitch, which is the vertical rotation angle.

isOnGround(): boolean

Determines whether the player is on the ground.

isMoving(): boolean

Checks if the player is currently moving.

getRotating(): boolean

Determines whether the player is rotating.

setOnGround(boolean onGround): void

Sets the packet's onGround status.

setPosition(double x, double y, double z): void

Sets the x, y and z for this packet.

setRotation(float yaw, float pitch): void

Sets the yaw and pitch for this packet.

Last updated