Skip to content

Class endstone::Criteria

ClassList > endstone > Criteria

Represents a scoreboard criteria.

  • #include <endstone/scoreboard/criteria.h>

Public Types

Type Name
enum Type
Represents the built-in criteria types.

Public Functions

Type Name
virtual RenderType getDefaultRenderType () const = 0
Get the RenderType used by default for this criteria.
virtual std::string getName () const = 0
Get the name of this criteria (its unique id).
virtual bool isReadOnly () const = 0
Get whether or not this criteria is read only.
virtual ~Criteria () = default

Public Types Documentation

enum Type

Represents the built-in criteria types.

enum endstone::Criteria::Type {
    Dummy
};


Public Functions Documentation

function getDefaultRenderType

Get the RenderType used by default for this criteria.

virtual RenderType endstone::Criteria::getDefaultRenderType () const = 0

Returns:

the default render type


function getName

Get the name of this criteria (its unique id).

virtual std::string endstone::Criteria::getName () const = 0

Returns:

the name


function isReadOnly

Get whether or not this criteria is read only.

virtual bool endstone::Criteria::isReadOnly () const = 0

If read only, scoreboards with this criteria cannot have their scores changed.

Returns:

true if read only, false otherwise


function ~Criteria

virtual endstone::Criteria::~Criteria () = default


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