S0EPacketSpawnObject
Represents a packet that is sent when an object/entity is spawned
Extends
Methods
getEntityID()
getEntityID():
number
Gets the ID of the spawned entity
Returns
number
The entity ID
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 of the entity
Returns
number
The pitch angle
getSpeedX()
getSpeedX():
number
Gets the X velocity of the entity
Returns
number
The X velocity
getSpeedY()
getSpeedY():
number
Gets the Y velocity of the entity
Returns
number
The Y velocity
getSpeedZ()
getSpeedZ():
number
Gets the Z velocity of the entity
Returns
number
The Z velocity
getType()
getType():
number
Gets the type ID of the spawned entity
Returns
number
The entity type ID
getX()
getX():
number
Gets the X position of the entity
Returns
number
The X coordinate
getY()
getY():
number
Gets the Y position of the entity
Returns
number
The Y coordinate
getYaw()
getYaw():
number
Gets the yaw rotation of the entity
Returns
number
The yaw angle
getZ()
getZ():
number
Gets the Z position of the entity
Returns
number
The Z coordinate
setSpeedX()
setSpeedX(
var1):void
Sets the X velocity of the entity
Parameters
var1
number
The new X velocity
Returns
void
setSpeedY()
setSpeedY(
var1):void
Sets the Y velocity of the entity
Parameters
var1
number
The new Y velocity
Returns
void
setSpeedZ()
setSpeedZ(
var1):void
Sets the Z velocity of the entity
Parameters
var1
number
The new Z velocity
Returns
void
setX()
setX(
var1):void
Sets the X position of the entity
Parameters
var1
number
The new X coordinate
Returns
void
setY()
setY(
var1):void
Sets the Y position of the entity
Parameters
var1
number
The new Y coordinate
Returns
void
setZ()
setZ(
var1):void
Sets the Z position of the entity
Parameters
var1
number
The new Z coordinate
Returns
void
Last updated