Skip to content

Class endstone::Criteria

ClassList > endstone > Criteria

Represents a scoreboard criteria.

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

Public Types

Type Name
enum Type

Public Functions

Type Name
virtual RenderType getDefaultRenderType () const = 0
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. If read only, scoreboards with this criteria cannot have their scores changed.
virtual ~Criteria () = default

Public Types Documentation

enum Type

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

Public Functions Documentation

function getDefaultRenderType

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

Get the RenderType used by default for this criteria.

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. If read only, scoreboards with this criteria cannot have their scores changed.

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

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