10#if PROTOCOL_VERSION < 755
11 SetDataAttachPosId(std::optional<Position>());
53#if PROTOCOL_VERSION < 755
54 output[
"metadata"][
"data_attach_pos_id"] = GetDataAttachPosId() ? GetDataAttachPosId().value().Serialize() :
ProtocolCraft::Json::Value();
68#if PROTOCOL_VERSION < 755
69 std::optional<Position> ShulkerEntity::GetDataAttachPosId()
const
91#if PROTOCOL_VERSION < 755
92 void ShulkerEntity::SetDataAttachPosId(
const std::optional<Position>& data_attach_pos_id)
void SetMetadata(const int index, const std::any &value)
virtual ProtocolCraft::Json::Value Serialize() const
std::vector< std::any > metadata
std::map< EntityAttribute::Type, EntityAttribute > attributes
char GetDataPeekId() const
void SetDataPeekId(const char data_peek_id)
virtual std::string GetName() const override
static EntityType GetClassType()
Direction GetDataAttachFaceId() const
virtual double GetHeightImpl() const override
virtual EntityType GetType() const override
static constexpr int metadata_count
static std::string GetClassName()
static constexpr int hierarchy_metadata_count
virtual double GetWidthImpl() const override
void SetDataAttachFaceId(const Direction data_attach_face_id)
virtual ProtocolCraft::Json::Value Serialize() const override
char GetDataColorId() const
void SetDataColorId(const char data_color_id)
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)