1#if PROTOCOL_VERSION > 767
12#if PROTOCOL_VERSION > 768
19#if PROTOCOL_VERSION < 769
65#if PROTOCOL_VERSION > 768
67 const std::optional<Position> home_pos =
GetHomePos();
86#if PROTOCOL_VERSION > 768
109#if PROTOCOL_VERSION > 768
std::optional< Position > GetHomePos() const
virtual EntityType GetType() const override
static std::string GetClassName()
virtual double GetWidthImpl() const override
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
bool GetIsTearingDown() const
void SetHomePos(const std::optional< Position > &home_pos)
static EntityType GetClassType()
virtual double GetHeightImpl() const override
virtual ~CreakingEntity()
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int metadata_count
void SetCanMove(const bool can_move)
void SetIsTearingDown(const bool is_tearing_down)
void SetIsActive(const bool is_active)
void SetMetadata(const int index, const std::any &value)
std::vector< std::any > metadata
std::map< EntityAttribute::Type, EntityAttribute > attributes
virtual ProtocolCraft::Json::Value Serialize() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)