C06PacketPlayerPosition
Extends
Constructors
Constructor
new C06PacketPlayerPosition(
x,y,z,yaw,pitch,onGround):C06PacketPlayerPosition
Parameters
x
number
y
number
z
number
yaw
number
pitch
number
onGround
boolean
Returns
C06PacketPlayerPosition
Overrides
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
Inherited from
getPositionX()
getPositionX():
number
Gets the X position
Returns
number
The X position
Inherited from
getPositionY()
getPositionY():
number
Gets the Y position
Returns
number
The Y position
Inherited from
getPositionZ()
getPositionZ():
number
Gets the Z position
Returns
number
The Z position
Inherited from
getRotating()
getRotating():
boolean
Checks if the player is rotating
Returns
boolean
True if the player is rotating
Inherited from
getYaw()
getYaw():
number
Gets the yaw rotation
Returns
number
The yaw rotation
Inherited from
isMoving()
isMoving():
boolean
Checks if the player is moving
Returns
boolean
True if the player is moving
Inherited from
isOnGround()
isOnGround():
boolean
Checks if the player is on ground
Returns
boolean
True if the player is on ground
Inherited from
setOnGround()
setOnGround(
onGround):void
Sets if the player is on ground
Parameters
onGround
boolean
onGround - True to set the player on ground
Returns
void
Inherited from
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
Inherited from
setRotations()
setRotations(
yaw,pitch):void
Sets the player rotation
Parameters
yaw
number
yaw - The yaw rotation
pitch
number
pitch - The pitch rotation
Returns
void
Inherited from
Last updated