9#if PROTOCOL_VERSION > 774
18#if PROTOCOL_VERSION > 774
39#if PROTOCOL_VERSION > 774
63 return std::any_cast<bool>(
metadata.at(
"data_baby_id"));
66#if PROTOCOL_VERSION > 774
70 return std::any_cast<bool>(
metadata.at(
"age_locked"));
78 metadata[
"data_baby_id"] = data_baby_id;
81#if PROTOCOL_VERSION > 774
bool GetAgeLocked() const
bool GetDataBabyId() const
void SetAgeLocked(const bool age_locked)
static constexpr int metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
static const std::array< std::string, metadata_count > metadata_names
static constexpr int hierarchy_metadata_count
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual bool IsAgeableMob() const override
void SetDataBabyId(const bool data_baby_id)
virtual ~AgeableMobEntity()
virtual ProtocolCraft::Json::Value Serialize() const
virtual void SetMetadataValue(const int index, const std::any &value)
std::shared_mutex entity_mutex
std::map< std::string, std::any > metadata
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...