The world that the dimension will belong to.
Optional
properties: DimensionPropertiesThe properties of the dimension.
Readonly
blocksThe blocks in the dimension that contain data.
Readonly
entitiesThe entities in the dimension.
Readonly
generatorThe generator of the dimension.
Readonly
identifierThe identifier of the dimension.
Readonly
propertiesThe properties of the dimension.
Protected
Readonly
serenityThe serenity instance of the server.
Readonly
typeThe type of the dimension.
Readonly
worldThe world that the dimension belongs to.
The distance in chunks that entities will be simulated.
The distance in chunks that entities will be simulated.
The spawn position of the dimension.
The spawn position of the dimension.
The amount of chunks that that will be rendered by the client.
The amount of chunks that that will be rendered by the client.
Broadcast packets to all the players in the dimension.
The packets to broadcast.
Broadcast packets to all the players in the dimension except the specified player.
The packets to broadcast.
Broadcast packets to all the players in the dimension immediately. This will bypass the RakNet queue and send the packets immediately.
The packets to broadcast.
Executes a command in the dimension.
The command to execute.
The response of the command.
Executes a command in the dimension asynchronously.
The command to execute.
The response of the command.
Fills a region with a permutation.
The starting position.
The ending position.
The permutation to fill the region with.
The amount of blocks that were filled.
Gets a block from the dimension.
The position of the block.
The block at the specified position.
Gets a chunk from the dimension.
The chunk x coordinate.
The chunk z coordinate.
The chunk at the specified coordinates.
Gets all the entities in the dimension.
Optional
options: EntityQueryOptionsThe options to filter the entities.
An array of entities.
Gets an entity from the dimension.
The id of the entity, either unique id or runtime id.
Whether to get the entity by runtime id; defaults to false.
The entity if found, otherwise null.
Get the permutation of a block at a given position. This method won't construct a block instance.
The position of the block.
The block permutation at the specified position.
Gets all the players in the dimension.
Optional
options: EntityQueryOptionsAn array of players.
Gets the topmost block in which the permutation is not air, at the given X and Z coordinates.
The position to query.
The topmost block in which the permutation is not air.
Gets the dimension index in the world.
The dimension index.
Ticks the dimension with a given delta tick.
The delta tick to tick the dimension with.
Schedule an execution of a function after a specified amount of ticks.
The amount of ticks to wait before the schedule is complete.
The created tick schedule.
Broadcasts a message to all players in the dimension.
The message to broadcast.
Sets the permutation of a block at a given position.
The position of the block.
The permutation to set.
The layer to set the permutation on.
Spawns an entity in the dimension.
The type of the entity.
The position of the entity.
The entity that was spawned.
Creates a new dimension for a world.