3#if PROTOCOL_VERSION > 765
13#if PROTOCOL_VERSION < 766
18 default_slot.SetItemId(item_id);
19 default_slot.SetItemCount(1);
23#if PROTOCOL_VERSION > 404
39 return "firework_rocket";
50 return "firework_rocket";
61#if PROTOCOL_VERSION > 578
68#if PROTOCOL_VERSION > 404
84#if PROTOCOL_VERSION > 404
107#if PROTOCOL_VERSION > 404
static AssetsManager & getInstance()
ItemId GetItemID(const std::string &item_name) const
void SetMetadata(const int index, const std::any &value)
virtual ProtocolCraft::Json::Value Serialize() const
std::vector< std::any > metadata
static std::string GetClassName()
virtual double GetHeightImpl() const override
ProtocolCraft::Slot GetDataIdFireworksItem() const
virtual ProtocolCraft::Json::Value Serialize() const override
std::optional< int > GetDataAttachedToTarget() const
bool GetDataShotAtAngle() const
virtual double GetWidthImpl() const override
void SetDataShotAtAngle(const bool data_shot_at_angle)
static constexpr int metadata_count
virtual ~FireworkRocketEntity()
static EntityType GetClassType()
virtual std::string GetName() const override
void SetDataIdFireworksItem(const ProtocolCraft::Slot &data_id_fireworks_item)
virtual EntityType GetType() const override
void SetDataAttachedToTarget(const std::optional< int > &data_attached_to_target)
static constexpr int hierarchy_metadata_count
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
virtual Json::Value Serialize() const
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)