9#if PROTOCOL_VERSION < 770
10 SetDataSaddleId(
false);
13#if PROTOCOL_VERSION > 769
16#if PROTOCOL_VERSION > 774
57#if PROTOCOL_VERSION < 770
58 output[
"metadata"][
"data_saddle_id"] = GetDataSaddleId();
61#if PROTOCOL_VERSION > 769
64#if PROTOCOL_VERSION > 774
72#if PROTOCOL_VERSION < 770
73 bool PigEntity::GetDataSaddleId()
const
84#if PROTOCOL_VERSION > 769
91#if PROTOCOL_VERSION > 774
99#if PROTOCOL_VERSION < 770
100 void PigEntity::SetDataSaddleId(
const bool data_saddle_id)
111#if PROTOCOL_VERSION > 769
118#if PROTOCOL_VERSION > 774
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
void SetDataVariantId(const int data_variant_id)
virtual double GetWidthImpl() const override
void SetDataBoostTime(const int data_boost_time)
static std::string GetClassName()
int GetDataVariantId() const
virtual double GetHeightImpl() const override
static constexpr int metadata_count
virtual EntityType GetType() const override
virtual ProtocolCraft::Json::Value Serialize() const override
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
int GetDataSoundVariantId() const
static EntityType GetClassType()
void SetDataSoundVariantId(const int data_sound_variant_id)
int GetDataBoostTime() const
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)