C03PacketPlayer
A packet sent by the client to update the player's position and/or rotation.
Extends
Extended by
Constructors
Constructor
new C03PacketPlayer(
onGround):C03PacketPlayer
Creates a new C03PacketPlayer
Parameters
onGround
boolean
onGround - Whether the player is on ground
Returns
C03PacketPlayer
Overrides
Packet.constructor
Methods
getPacketID()
getPacketID():
string
Get the ID of the packet.
Returns
string
The ID of the packet.
Inherited from
getPitch()
getPitch():
number
Gets the pitch rotation
Returns
number
The pitch rotation
getPositionX()
getPositionX():
number
Gets the X position
Returns
number
The X position
getPositionY()
getPositionY():
number
Gets the Y position
Returns
number
The Y position
getPositionZ()
getPositionZ():
number
Gets the Z position
Returns
number
The Z position
getRotating()
getRotating():
boolean
Checks if the player is rotating
Returns
boolean
True if the player is rotating
getYaw()
getYaw():
number
Gets the yaw rotation
Returns
number
The yaw rotation
isMoving()
isMoving():
boolean
Checks if the player is moving
Returns
boolean
True if the player is moving
isOnGround()
isOnGround():
boolean
Checks if the player is on ground
Returns
boolean
True if the player is on ground
setOnGround()
setOnGround(
onGround):void
Sets if the player is on ground
Parameters
onGround
boolean
onGround - True to set the player on ground
Returns
void
setPosition()
setPosition(
x,y,z):void
Sets the player position
Parameters
x
number
x - The X position
y
number
y - The Y position
z
number
z - The Z position
Returns
void
setRotations()
setRotations(
yaw,pitch):void
Sets the player rotation
Parameters
yaw
number
yaw - The yaw rotation
pitch
number
pitch - The pitch rotation
Returns
void
Last updated