Skip to content

Class endstone::DimensionCreator

ClassList > endstone > DimensionCreator

Represents the options that may be used to create a custom Dimension .

  • #include <endstone/level/dimension_creator.h>

Public Functions

Type Name
DimensionCreator (DimensionId id)
Creates an instance of a DimensionCreator for the given dimension id.
DimensionId getId () const
Gets the identifier of the dimension that is being created.
DimensionCreator & id (DimensionId id)
Sets the identifier of the dimension that is being created.

Public Functions Documentation

function DimensionCreator

Creates an instance of a DimensionCreator for the given dimension id.

inline explicit endstone::DimensionCreator::DimensionCreator (
    DimensionId id
) 

Parameters:

  • id the identifier of the dimension to create, e.g. myplugin:void_realm

function getId

Gets the identifier of the dimension that is being created.

inline DimensionId endstone::DimensionCreator::getId () const

Returns:

the dimension identifier


function id

Sets the identifier of the dimension that is being created.

inline DimensionCreator & endstone::DimensionCreator::id (
    DimensionId id
) 

Parameters:

  • id the dimension identifier

Returns:

this DimensionCreator, for chaining



The documentation for this class was generated from the following file include/endstone/level/dimension_creator.h