1#if PROTOCOL_VERSION > 340
10#if PROTOCOL_VERSION < 770
15#if PROTOCOL_VERSION < 770
24#if PROTOCOL_VERSION > 765
61#if PROTOCOL_VERSION < 770
62 output[
"metadata"][
"home_pos"] = GetHomePos().Serialize();
64 output[
"metadata"][
"has_egg"] =
GetHasEgg();
66#if PROTOCOL_VERSION < 770
67 output[
"metadata"][
"travel_pos"] = GetTravelPos().Serialize();
68 output[
"metadata"][
"going_home"] = GetGoingHome();
69 output[
"metadata"][
"travelling"] = GetTravelling();
76#if PROTOCOL_VERSION < 770
77 Position TurtleEntity::GetHomePos()
const
93#if PROTOCOL_VERSION < 770
94 Position TurtleEntity::GetTravelPos()
const
99 bool TurtleEntity::GetGoingHome()
const
104 bool TurtleEntity::GetTravelling()
const
111#if PROTOCOL_VERSION < 770
112 void TurtleEntity::SetHomePos(
const Position& home_pos)
128#if PROTOCOL_VERSION < 770
129 void TurtleEntity::SetTravelPos(
const Position& travel_pos)
134 void TurtleEntity::SetGoingHome(
const bool going_home)
139 void TurtleEntity::SetTravelling(
const bool travelling)
virtual ProtocolCraft::Json::Value Serialize() const override
void SetMetadata(const int index, const std::any &value)
std::vector< std::any > metadata
std::map< EntityAttribute::Type, EntityAttribute > attributes
static EntityType GetClassType()
static constexpr int metadata_count
virtual double GetHeightImpl() const override
bool GetLayingEgg() const
static std::string GetClassName()
static constexpr int hierarchy_metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
void SetLayingEgg(const bool laying_egg)
virtual double GetWidthImpl() const override
virtual EntityType GetType() const override
void SetHasEgg(const bool has_egg)
virtual std::string GetName() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)