Skip to content

Class endstone::Identifier

template <typename T>

ClassList > endstone > Identifier

Represents a identifier consisting of two components: a namespace and a key.

  • #include <endstone/identifier.h>

Public Static Attributes

Type Name
constexpr std::string_view Minecraft = "minecraft"
The namespace representing all inbuilt keys.

Public Functions

Type Name
constexpr Identifier (const char * s) noexcept
constexpr Identifier (const std::string & s) noexcept
constexpr Identifier (const std::string_view & identifier) noexcept
constexpr Identifier (const std::string_view & namespace_, const std::string_view & key) noexcept
constexpr std::string_view getKey () noexcept const
constexpr std::string_view getNamespace () noexcept const
string () const
constexpr bool operator!= (const Identifier & other) noexcept const
constexpr bool operator== (const Identifier & other) noexcept const

Public Static Functions

Type Name
constexpr Identifier minecraft (const std::string_view key) noexcept

Public Static Attributes Documentation

variable Minecraft

The namespace representing all inbuilt keys.

constexpr std::string_view endstone::Identifier< T >::Minecraft;


Public Functions Documentation

function Identifier [¼]

inline constexpr endstone::Identifier::Identifier (
    const  char * s
) noexcept

function Identifier [2/4]

inline constexpr endstone::Identifier::Identifier (
    const std::string & s
) noexcept

function Identifier [¾]

inline constexpr endstone::Identifier::Identifier (
    const std::string_view & identifier
) noexcept

function Identifier [4/4]

inline constexpr endstone::Identifier::Identifier (
    const std::string_view & namespace_,
    const std::string_view & key
) noexcept

function getKey

inline constexpr std::string_view endstone::Identifier::getKey () noexcept const

function getNamespace

inline constexpr std::string_view endstone::Identifier::getNamespace () noexcept const

function string

inline endstone::Identifier::string () const

function operator!=

inline constexpr  bool endstone::Identifier::operator!= (
    const  Identifier & other
) noexcept const

function operator==

inline constexpr  bool endstone::Identifier::operator== (
    const  Identifier & other
) noexcept const

Public Static Functions Documentation

function minecraft

static inline constexpr  Identifier endstone::Identifier::minecraft (
    const std::string_view key
) noexcept


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