10#if PROTOCOL_VERSION < 762
11 SetDataIdOwnerUuid(std::optional<ProtocolCraft::UUID>());
15#if PROTOCOL_VERSION < 766
16 attributes.insert({ EntityAttribute::Type::HorseJumpStrength,
EntityAttribute(EntityAttribute::Type::HorseJumpStrength, 0.7) });
22#if PROTOCOL_VERSION > 765
45#if PROTOCOL_VERSION < 762
49#if PROTOCOL_VERSION < 766
63#if PROTOCOL_VERSION < 762
64 std::optional<ProtocolCraft::UUID> AbstractHorseEntity::GetDataIdOwnerUuid()
const
76#if PROTOCOL_VERSION < 762
77 void AbstractHorseEntity::SetDataIdOwnerUuid(
const std::optional<ProtocolCraft::UUID>& data_id_owner_uuid)
84#if PROTOCOL_VERSION < 766
88 return attributes.at(EntityAttribute::Type::HorseJumpStrength).GetValue();
virtual bool IsAbstractHorse() const override
void SetDataIdFlags(const char data_id_flags)
static constexpr int metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int hierarchy_metadata_count
char GetDataIdFlags() const
virtual ~AbstractHorseEntity()
virtual ProtocolCraft::Json::Value Serialize() const override
void SetMetadata(const int index, const std::any &value)
std::shared_mutex entity_mutex
std::vector< std::any > metadata
std::map< EntityAttribute::Type, EntityAttribute > attributes
double GetAttributeJumpStrengthValue() const
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)