Class endstone::Dimension¶
ClassList > endstone > Dimension
Represents a dimension within a Level .
- #include <endstone/level/dimension.h>
Public Types¶
| Type | Name | 
|---|---|
| enum | Type Represents various dimension types. | 
Public Functions¶
| Type | Name | 
|---|---|
| virtual Item & | dropItem (Location location, ItemStack & item) = 0 Drops an item at the specified Location . | 
| virtual std::vector< Actor * > | getActors () const = 0 Get a list of all actors in this dimension. | 
| virtual std::unique_ptr< Block > | getBlockAt (int x, int y, int z) const = 0 Gets the Block at the given coordinates. | 
| virtual std::unique_ptr< Block > | getBlockAt (Location location) const = 0 Gets the Block at the givenLocation . | 
| virtual std::unique_ptr< Block > | getHighestBlockAt (int x, int z) const = 0 Gets the highest non-empty (impassable) block at the given coordinates. | 
| virtual std::unique_ptr< Block > | getHighestBlockAt (Location location) const = 0 Gets the highest non-empty (impassable) block at the given Location . | 
| virtual int | getHighestBlockYAt (int x, int z) const = 0 Gets the highest non-empty (impassable) coordinate at the given coordinates. | 
| virtual Level & | getLevel () const = 0 Gets the level to which this dimension belongs. | 
| virtual std::vector< std::unique_ptr< Chunk > > | getLoadedChunks () = 0 Gets a list of all loaded Chunks. | 
| virtual std::string | getName () const = 0 Gets the name of this dimension. | 
| virtual Type | getType () const = 0 Gets the type of this dimension. | 
| virtual Actor * | spawnActor (Location location, std::string type) = 0 Creates an actor at the given Location . | 
| virtual | ~Dimension () = default | 
Public Types Documentation¶
enum Type¶
Represents various dimension types.
Public Functions Documentation¶
function dropItem¶
Drops an item at the specified Location .
Parameters:
Returns:
Item entity created as a result of this method
function getActors¶
Get a list of all actors in this dimension.
Returns:
A List of all actors currently residing in this dimension
function getBlockAt [½]¶
Gets the Block at the given coordinates.
Parameters:
- xX-coordinate of the block
- yY-coordinate of the block
- zZ-coordinate of the block
Returns:
Block at the given coordinates
function getBlockAt [2/2]¶
Gets the Block at the givenLocation .
Parameters:
- locationLocation of the block
Returns:
Block at the given coordinates
function getHighestBlockAt [½]¶
Gets the highest non-empty (impassable) block at the given coordinates.
Parameters:
- xX-coordinate of the block
- zZ-coordinate of the block
Returns:
Highest non-empty block
function getHighestBlockAt [2/2]¶
Gets the highest non-empty (impassable) block at the given Location .
virtual std::unique_ptr< Block > endstone::Dimension::getHighestBlockAt (
    Location location
) const = 0
Parameters:
- locationCoordinates to get the highest block
Returns:
Highest non-empty block
function getHighestBlockYAt¶
Gets the highest non-empty (impassable) coordinate at the given coordinates.
Parameters:
- xX-coordinate of the blocks
- zZ-coordinate of the blocks
Returns:
Y-coordinate of the highest non-empty block
function getLevel¶
Gets the level to which this dimension belongs.
Returns:
Level containing this dimension.
function getLoadedChunks¶
Gets a list of all loaded Chunks.
Returns:
All loaded chunks
function getName¶
Gets the name of this dimension.
Returns:
Name of this dimension
function getType¶
Gets the type of this dimension.
Returns:
Type of this dimension
function spawnActor¶
Creates an actor at the given Location .
Parameters:
- locationThe location to spawn the actor
- typeThe actor to spawn
Returns:
Resulting Actor of this method
function ~Dimension¶
The documentation for this class was generated from the following file include/endstone/level/dimension.h