3#if PROTOCOL_VERSION > 769
9#if PROTOCOL_VERSION > 769
12#if PROTOCOL_VERSION > 774
13 "data_sound_variant_id",
20#if PROTOCOL_VERSION < 770
25#if PROTOCOL_VERSION > 769
28#if PROTOCOL_VERSION > 774
60#if PROTOCOL_VERSION > 769
65#if PROTOCOL_VERSION > 774
89 return std::any_cast<int>(
metadata.at(
"data_variant_id"));
91#if PROTOCOL_VERSION > 774
95 return std::any_cast<int>(
metadata.at(
"data_sound_variant_id"));
103 metadata[
"data_variant_id"] = data_variant_id;
105#if PROTOCOL_VERSION > 774
109 metadata[
"data_sound_variant_id"] = data_sound_variant_id;
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
void SetDataSoundVariantId(const int data_suond_variant_id)
static constexpr int metadata_count
static std::string GetClassName()
virtual EntityType GetType() const override
virtual ProtocolCraft::Json::Value Serialize() const override
int GetDataVariantId() const
virtual double GetHeightImpl() const override
virtual std::string GetName() const override
static EntityType GetClassType()
virtual double GetWidthImpl() const override
static constexpr int hierarchy_metadata_count
int GetDataSoundVariantId() const
virtual void SetMetadataValue(const int index, const std::any &value) override
void SetDataVariantId(const int data_variant_id)
static const std::array< std::string, metadata_count > metadata_names
std::shared_mutex entity_mutex
std::map< std::string, std::any > metadata
std::map< EntityAttribute::Type, EntityAttribute > attributes
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...