Cuberite
A lightweight, fast and extensible game server for Minecraft
Enumerations | Functions
NamespaceSerializer Namespace Reference

Enumerations

enum class  Namespace { Minecraft , Cuberite , Unknown }
 

Functions

unsigned DataVersion ()
 
std::string_view From (BannerPattern a_ID)
 
std::string_view From (CustomStatistic a_ID)
 
std::string_view From (eMonsterType a_ID)
 
AString Prettify (AString a_ID)
 
AString PrettifyEntityName (const AString &a_ID, const bool a_IsTamed=false)
 
std::pair< Namespace, std::string_view > SplitNamespacedID (std::string_view ID)
 
CustomStatistic ToCustomStatistic (std::string_view a_ID)
 
eMonsterType ToMonsterType (std::string_view a_ID)
 

Enumeration Type Documentation

◆ Namespace

Enumerator
Minecraft 
Cuberite 
Unknown 

Definition at line 9 of file NamespaceSerializer.h.

Function Documentation

◆ DataVersion()

unsigned NamespaceSerializer::DataVersion ( )

Definition at line 9 of file NamespaceSerializer.cpp.

◆ From() [1/3]

std::string_view NamespaceSerializer::From ( BannerPattern  a_ID)

Definition at line 225 of file NamespaceSerializer.cpp.

◆ From() [2/3]

std::string_view NamespaceSerializer::From ( CustomStatistic  a_ID)

Definition at line 18 of file NamespaceSerializer.cpp.

◆ From() [3/3]

std::string_view NamespaceSerializer::From ( eMonsterType  a_ID)

Definition at line 143 of file NamespaceSerializer.cpp.

◆ Prettify()

AString NamespaceSerializer::Prettify ( AString  a_ID)

Definition at line 554 of file NamespaceSerializer.cpp.

◆ PrettifyEntityName()

AString NamespaceSerializer::PrettifyEntityName ( const AString a_ID,
const bool  a_IsTamed = false 
)

Definition at line 578 of file NamespaceSerializer.cpp.

◆ SplitNamespacedID()

std::pair< NamespaceSerializer::Namespace, std::string_view > NamespaceSerializer::SplitNamespacedID ( std::string_view  ID)

Definition at line 403 of file NamespaceSerializer.cpp.

◆ ToCustomStatistic()

CustomStatistic NamespaceSerializer::ToCustomStatistic ( std::string_view  a_ID)

Definition at line 277 of file NamespaceSerializer.cpp.

◆ ToMonsterType()

eMonsterType NamespaceSerializer::ToMonsterType ( std::string_view  a_ID)

Definition at line 433 of file NamespaceSerializer.cpp.