1#if PROTOCOL_VERSION > 758
4#if PROTOCOL_VERSION > 774
10#if PROTOCOL_VERSION > 774
19#if PROTOCOL_VERSION > 774
56#if PROTOCOL_VERSION > 774
84 return std::any_cast<bool>(
metadata.at(
"age_locked"));
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
std::map< EntityAttribute::Type, EntityAttribute > attributes
static std::string GetClassName()
static constexpr int hierarchy_metadata_count
virtual void SetMetadataValue(const int index, const std::any &value) override
bool GetAgeLocked() const
virtual double GetWidthImpl() const override
virtual std::string GetName() const override
static constexpr int metadata_count
void SetAgeLocked(const bool age_locked)
virtual ProtocolCraft::Json::Value Serialize() const override
virtual EntityType GetType() const override
static EntityType GetClassType()
virtual double GetHeightImpl() const override
static const std::array< std::string, metadata_count > metadata_names
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...