The entity to add.
Returns a block instance in the given world position.
block x
block y
block z
Optional
layer: number = 0block storage layer (0 for blocks, 1 for liquids)
Returns the chunk in the specifies x and z, if the chunk doesn't exists it is generated.
Returns a chunk from a block position's x and z coordinates.
Returns a chunk from a block position's x and z coordinates.
Get the player data for a player.
The player to get the data for.
The player data.
The server instance.
Returns the world default spawn position.
Loads a chunk in a given x and z and returns its.
x coordinate.
z coordinate.
Optional
_ignoreWarn: booleanRemoves an entity from the level.
The entity to remove.
Saves changed chunks into disk.
Sends the current time to all players in the world.
Sends a world event packet to all the viewers in the position chunk.
world position.
event identifier.
event data.
Called every tick.
Adds an entity to the level.