Class endstone::Level¶
Represents a level, which may contain actors, chunks and blocks.
#include <endstone/level/level.h>
Public Functions¶
Type | Name |
---|---|
virtual std::vector< Actor * > | getActors () const = 0 Get a list of all actors in this level. |
virtual Dimension * | getDimension (std::string name) const = 0 Gets the dimension with the given name. |
virtual std::vector< Dimension * > | getDimensions () const = 0 Gets a list of all dimensions within this level. |
virtual std::string | getName () const = 0 Gets the unique name of this level. |
virtual int | getTime () const = 0 Gets the relative in-game time of this level. |
virtual void | setTime (int time) = 0 Sets the relative in-game time on the server. |
virtual | ~Level () = default |
Public Functions Documentation¶
function getActors¶
Get a list of all actors in this level.
Returns:
A List of all actors currently residing in this level
function getDimension¶
Gets the dimension with the given name.
Parameters:
name
the name of the dimension to retrieve
Returns:
The Dimension with the given name, or nullptr if none exists
function getDimensions¶
Gets a list of all dimensions within this level.
Returns:
a list of dimensions
function getName¶
Gets the unique name of this level.
Returns:
Name of this level
function getTime¶
Gets the relative in-game time of this level.
Returns:
The current relative time
function setTime¶
Sets the relative in-game time on the server.
Parameters:
time
The new relative time to set the in-game time to
function ~Level¶
The documentation for this class was generated from the following file include/endstone/level/level.h