1#if PROTOCOL_VERSION > 340
8#if PROTOCOL_VERSION > 767
17#if PROTOCOL_VERSION > 767
18#if PROTOCOL_VERSION < 769
54#if PROTOCOL_VERSION > 767
78#if PROTOCOL_VERSION < 769
87 return std::any_cast<const std::string&>(
metadata.at(
"data_type"));
98 return std::any_cast<int>(
metadata.at(
"data_type"));
104#if PROTOCOL_VERSION < 769
106 if (type ==
"medium")
110 else if (type ==
"small")
133#if PROTOCOL_VERSION < 769
139 std::scoped_lock<std::shared_mutex> lock(entity_mutex);
140 metadata[
"data_type"] = data_type;
149#if PROTOCOL_VERSION < 768
158#if PROTOCOL_VERSION < 768
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
std::shared_mutex entity_mutex
std::map< std::string, std::any > metadata
double GetScaleImpl() const
virtual ProtocolCraft::Json::Value Serialize() const override
static const std::array< std::string, metadata_count > metadata_names
static constexpr int metadata_count
virtual void SetMetadataValue(const int index, const std::any &value) override
static constexpr int hierarchy_metadata_count
static EntityType GetClassType()
virtual double GetHeightImpl() const override
int GetDataTypeImpl() const
virtual double GetWidthImpl() const override
virtual std::string GetName() const override
static std::string GetClassName()
void SetDataType(const int data_type)
virtual EntityType GetType() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...