7#if PROTOCOL_VERSION > 404
15#if PROTOCOL_VERSION > 404
17#if PROTOCOL_VERSION < 770
53#if PROTOCOL_VERSION > 404
56#if PROTOCOL_VERSION < 770
72#if PROTOCOL_VERSION < 770
85#if PROTOCOL_VERSION < 770
89 return std::any_cast<std::string>(
metadata.at(
"data_type"));
102 return std::any_cast<int>(
metadata.at(
"data_type"));
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
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
virtual double GetWidthImpl() const override
virtual EntityType GetType() const override
void SetDataType(const int data_type)
virtual double GetHeightImpl() const override
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
static EntityType GetClassType()
static std::string GetClassName()
static const std::array< std::string, metadata_count > metadata_names
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual ~MushroomCowEntity()
static constexpr int metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...