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(): double
Returns the player's X-coordinate position.
getPositionY(): double
getPositionY(): double
Returns the player's Y-coordinate position.
getPositionZ(): double
getPositionZ(): double
Returns the player's Z-coordinate position.
getYaw(): double
getYaw(): double
Retrieves the player's yaw, which is the horizontal rotation angle.
getPitch(): double
getPitch(): double
Retrieves the player's pitch, which is the vertical rotation angle.
isOnGround(): boolean
isOnGround(): boolean
Determines whether the player is on the ground.
isMoving(): boolean
isMoving(): boolean
Checks if the player is currently moving.
getRotating(): boolean
getRotating(): boolean
Determines whether the player is rotating.
setOnGround(boolean onGround): void
setOnGround(boolean onGround): void
Sets the packet's onGround status.
setPosition(double x, double y, double z): void
setPosition(double x, double y, double z): void
Sets 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): void
Sets 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