3#if PROTOCOL_VERSION > 769
9#if PROTOCOL_VERSION > 769
12#if PROTOCOL_VERSION > 774
13 "data_sound_variant_id",
20#if PROTOCOL_VERSION > 769
23#if PROTOCOL_VERSION > 774
58#if PROTOCOL_VERSION > 769
63#if PROTOCOL_VERSION > 774
86 return std::any_cast<int>(
metadata.at(
"data_variant_id"));
89#if PROTOCOL_VERSION > 774
93 return std::any_cast<int>(
metadata.at(
"data_sound_variant_id"));
101 metadata[
"data_variant_id"] = data_variant_id;
104#if PROTOCOL_VERSION > 774
108 metadata[
"data_sound_variant_id"] = data_sound_variant_id;
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual ProtocolCraft::Json::Value Serialize() const override
virtual ProtocolCraft::Json::Value Serialize() const override
int GetDataSoundVariantId() const
int GetDataVariantId() const
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
void SetDataVariantId(const int data_variant_id)
virtual double GetWidthImpl() const override
static EntityType GetClassType()
void SetDataSoundVariantId(const int data_sound_variant_id)
static std::string GetClassName()
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual double GetHeightImpl() const override
static const std::array< std::string, metadata_count > metadata_names
virtual EntityType GetType() const override
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...