Botcraft 1.21.4
Loading...
Searching...
No Matches
ThrownEnderpearlEntity.cpp
Go to the documentation of this file.
2
3#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
5#endif
6
7namespace Botcraft
8{
10 {
11 // Initialize all metadata with default values
12#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
13 static const int item_id = AssetsManager::getInstance().GetItemID("minecraft:ender_pearl");
14 ProtocolCraft::Slot default_slot;
15 default_slot.SetItemId(item_id);
16 default_slot.SetItemCount(1);
17 SetDataItemStack(default_slot);
18#endif
19 }
20
25
26
28 {
29 return "ender_pearl";
30 }
31
36
37
39 {
40 return "ender_pearl";
41 }
42
47
48
50 {
51 return 0.25;
52 }
53
55 {
56 return 0.25;
57 }
58
59}
static AssetsManager & getInstance()
ItemId GetItemID(const std::string &item_name) const
void SetDataItemStack(const ProtocolCraft::Slot &data_item_stack)
virtual std::string GetName() const override
virtual EntityType GetType() const override
virtual double GetWidthImpl() const override
virtual double GetHeightImpl() const override