S0EPacketSpawnObject

getEntityID(): int

Returns the entity ID of the spawned object. This is an integer value uniquely identifying the object entity in the game world. You can use world.getEntityByID() to get the Entity object from this ID.

getX(): int

Returns the X-coordinate where the object is spawned. This is an integer value representing the object's horizontal position along the X-axis.

getY(): int

Returns the Y-coordinate where the object is spawned. This is an integer value representing the object's vertical position along the Y-axis.

getZ(): int

Returns the Z-coordinate where the object is spawned. This is an integer value representing the object's horizontal position along the Z-axis.

getSpeedX(): int

Retrieves the X-axis speed of the spawned object. This is an integer value indicating the object's horizontal velocity along the X-axis.

getSpeedY(): int

Retrieves the Y-axis speed of the spawned object. This is an integer value indicating the object's vertical velocity along the Y-axis.

getSpeedZ(): int

Retrieves the Z-axis speed of the spawned object. This is an integer value indicating the object's horizontal velocity along the Z-axis.

getPitch(): int

Returns the pitch (vertical rotation) of the object. This is an integer value representing the vertical orientation of the object.

getYaw(): int

Returns the yaw (horizontal rotation) of the object. This is an integer value representing the direction the object is facing.

getType(): int

Retrieves the type of the object spawned. This is an integer value representing the specific type of object.

setX(int var1)

Sets the X-coordinate for the spawned object. var1 is an integer value for the new X-coordinate.

setY(int var1)

Sets the Y-coordinate for the spawned object. var1 is an integer value for the new Y-coordinate.

setZ(int var1)

Sets the Z-coordinate for the spawned object. var1 is an integer value for the new Z-coordinate.

setSpeedX(int var1)

Sets the X-axis speed for the spawned object. var1 is an integer value for the new X-axis speed.

setSpeedY(int var1)

Sets the Y-axis speed for the spawned object. var1 is an integer value for the new Y-axis speed.

setSpeedZ(int var1)

Sets the Z-axis speed for the spawned object. var1 is an integer value for the new Z-axis speed.

Last updated