S0CPacketSpawnPlayer

Extends

Methods

getCurrentItemID()

getCurrentItemID(): number

Gets the ID of the item currently held by the spawned player.

Returns

number


getEntityID()

getEntityID(): number

Gets the ID of the spawned player entity.

Returns

number


getPacketID()

getPacketID(): string

Get the ID of the packet.

Returns

string

The ID of the packet.

Inherited from

Packet.getPacketID


getPitch()

getPitch(): number

Gets the pitch rotation of the spawned player, converted to degrees.

Returns

number


getPlayer()

getPlayer(): string

Returns

string

The UUID of the spawned player.


getX()

getX(): number

Gets the X coordinate of the spawned player, divided by 32 for block position.

Returns

number


getY()

getY(): number

Gets the Y coordinate of the spawned player, divided by 32 for block position.

Returns

number


getYaw()

getYaw(): number

Gets the yaw rotation of the spawned player, converted to degrees.

Returns

number


getZ()

getZ(): number

Gets the Z coordinate of the spawned player, divided by 32 for block position.

Returns

number

Last updated