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 Result< std::unique_ptr< Block > > | getBlockAt (int x, int y, int z) = 0 Gets the Block at the given coordinates. |
virtual Result< std::unique_ptr< Block > > | getBlockAt (Location location) = 0 Gets the Block at the givenLocation . |
virtual Level & | getLevel () const = 0 Gets the level to which this dimension belongs. |
virtual std::string | getName () const = 0 Gets the name of this dimension. |
virtual Type | getType () const = 0 Gets the type of this dimension. |
virtual | ~Dimension () = default |
Public Types Documentation¶
enum Type¶
Public Functions Documentation¶
function getBlockAt [½]¶
Gets the Block at the given coordinates.
virtual Result< std::unique_ptr< Block > > endstone::Dimension::getBlockAt (
int x,
int y,
int z
) = 0
Parameters:
x
X-coordinate of the blocky
Y-coordinate of the blockz
Z-coordinate of the block
Returns:
Block at the given coordinates
function getBlockAt [2/2]¶
Gets the Block at the givenLocation .
virtual Result< std::unique_ptr< Block > > endstone::Dimension::getBlockAt (
Location location
) = 0
Parameters:
location
Location of the block
Returns:
Block at the given coordinates
function getLevel¶
Gets the level to which this dimension belongs.
Returns:
Level containing this dimension.
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 ~Dimension¶
The documentation for this class was generated from the following file include/endstone/level/dimension.h