The world that the dimension will belong to.
Optionalproperties: DimensionPropertiesThe properties of the dimension.
ReadonlyblocksThe blocks in the dimension that contain data.
ReadonlyentitiesThe entities in the dimension.
ReadonlygeneratorThe generator of the dimension.
ReadonlyidentifierThe identifier of the dimension.
ReadonlypropertiesThe properties of the dimension.
Protected ReadonlyserenityThe serenity instance of the server.
ReadonlytypeThe type of the dimension.
ReadonlyworldThe 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.
Get a biome from the dimension at a given position.
The position to get the biome from.
The biome at the specified position.
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.
Optionaloptions: 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.
Optionaloptions: 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.
Place a structure in the dimension at a specified position asynchronously.
The identifier of the structure or the structure instance itself.
The position to place the structure at.
Optionaloptions: StructurePlaceOptionsThe options to place the structure with.
Schedule an execution of a function after a specified amount of ticks.
The amount of ticks to wait before the schedule is complete.
Optionalcallback: () => voidThe created tick schedule.
Schedules an execution of a function after a specified amount of ticks asynchronously.
The amount of ticks to wait before the schedule is complete.
A promise that resolves when the schedule is complete.
Broadcasts a message to all players in the dimension.
The message to broadcast.
Set a biome in the dimension at a given position.
The position to set the biome at.
The biome to set.
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.
Whether to spawn the entity immediately; defaults to true.
The entity that was spawned.
Spawns an experience orb in the dimension.
The amount of experience the orb will give.
The position to spawn the orb at.
The entity instance that was spawned.
Creates a new dimension for a world.