C04PacketPlayerPosition
Last updated
Packet sent by the client to update the player's position
var packet = new C04PacketPlayerPosition(0, 64, 0, true); // Create a packet for teleporting to 0,64,0new C04PacketPlayerPosition(
x,y,z,onGround):C04PacketPlayerPosition
Creates a new C04PacketPlayerPosition with the specified position
Parameters
x
number
The X position
y
number
The Y position
z
number
The Z position
onGround
boolean
Whether the player is on ground
Returns
C04PacketPlayerPosition
Overrides
getPacketID():
string
Get the ID of the packet.
Returns
string
The ID of the packet.
Inherited from
getPitch():
number
Gets the pitch rotation
Returns
number
The pitch rotation
Inherited from
getPositionX():
number
Gets the X position
Returns
number
The X position
Inherited from
getPositionY():
number
Gets the Y position
Returns
number
The Y position
Inherited from
getPositionZ():
number
Gets the Z position
Returns
number
The Z position
Inherited from
getRotating():
boolean
Checks if the player is rotating
Returns
boolean
True if the player is rotating
Inherited from
getYaw():
number
Gets the yaw rotation
Returns
number
The yaw rotation
Inherited from
isMoving():
boolean
Checks if the player is moving
Returns
boolean
True if the player is moving
Inherited from
isOnGround():
boolean
Checks if the player is on ground
Returns
boolean
True if the player is on ground
Inherited from
setOnGround(
onGround):void
Sets if the player is on ground
Parameters
onGround
boolean
True to set the player on ground
Returns
void
Inherited from
setPosition(
x,y,z):void
Sets the player position
Parameters
x
number
The X position
y
number
The Y position
z
number
The Z position
Returns
void
Inherited from
setRotations(
yaw,pitch):void
Sets the player rotation
Parameters
yaw
number
The yaw rotation
pitch
number
The pitch rotation
Returns
void
Inherited from
Last updated