1#if PROTOCOL_VERSION < 770
4#if PROTOCOL_VERSION > 765
10 ThrownPotionEntity::ThrownPotionEntity()
13 metadata.resize(metadata_count + hierarchy_metadata_count);
14#if PROTOCOL_VERSION < 579
17#if PROTOCOL_VERSION > 765
20 default_slot.SetItemId(item_id);
21 default_slot.SetItemCount(1);
22 SetDataItemStack(default_slot);
26 ThrownPotionEntity::~ThrownPotionEntity()
32 std::string ThrownPotionEntity::GetName()
const
39 return EntityType::ThrownPotion;
43 std::string ThrownPotionEntity::GetClassName()
50 return EntityType::ThrownPotion;
54#if PROTOCOL_VERSION < 579
59 output[
"metadata"][
"data_item_stack"] = GetDataItemStack().Serialize();
78 double ThrownPotionEntity::GetWidthImpl()
const
83 double ThrownPotionEntity::GetHeightImpl()
const
static AssetsManager & getInstance()
ItemId GetItemID(const std::string &item_name) const
virtual ProtocolCraft::Json::Value Serialize() const
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
#define BOTCRAFT_ENTITY_METADATA_INDEX(name)