1#if PROTOCOL_VERSION > 760
10 "last_pose_change_tick",
17#if PROTOCOL_VERSION < 762
26#if PROTOCOL_VERSION < 766
27 attributes.insert({ EntityAttribute::Type::HorseJumpStrength,
EntityAttribute(EntityAttribute::Type::HorseJumpStrength, 0.42) });
66 output[
"metadata"][
"dash"] =
GetDash();
89 return std::any_cast<bool>(
metadata.at(
"dash"));
95 return std::any_cast<long long int>(
metadata.at(
"last_pose_change_tick"));
108 metadata[
"last_pose_change_tick"] = last_pose_change_tick;
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual EntityType GetType() const override
virtual double GetWidthImpl() const override
virtual double GetHeightImpl() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
static std::string GetClassName()
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
void SetDash(const bool dash)
long long int GetLastPoseChangeTick() const
void SetLastPoseChangeTick(const long long int last_pose_change_tick)
virtual ProtocolCraft::Json::Value Serialize() const override
static EntityType GetClassType()
static const std::array< std::string, metadata_count > metadata_names
static constexpr int metadata_count
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...