Botcraft 1.21.4
Loading...
Searching...
No Matches
ThrownPotionEntity.hpp
Go to the documentation of this file.
1#pragma once
2
3#if PROTOCOL_VERSION > 578 /* > 1.15.2 */
5#else
8#endif
9
10namespace Botcraft
11{
12#if PROTOCOL_VERSION > 578 /* > 1.15.2 */
14#else
16#endif
17 {
18 protected:
19#if PROTOCOL_VERSION > 578 /* > 1.15.2 */
20 static constexpr int metadata_count = 0;
22#else
23 static constexpr int metadata_count = 1;
24 static const std::array<std::string, metadata_count> metadata_names;
26#endif
27 public:
29 virtual ~ThrownPotionEntity();
30
31 // Object related stuff
32 virtual std::string GetName() const override;
33 virtual EntityType GetType() const override;
34
35 // Static stuff, for easier comparison
36 static std::string GetClassName();
37 static EntityType GetClassType();
38
39
40#if PROTOCOL_VERSION < 579 /* < 1.16 */
41 virtual ProtocolCraft::Json::Value Serialize() const override;
42
43 // Metadata stuff
44 virtual void SetMetadataValue(const int index, const std::any& value) override;
45
47
48 void SetDataItemStack(const ProtocolCraft::Slot& data_item_stack);
49#endif
50
51 protected:
52 virtual double GetWidthImpl() const override;
53 virtual double GetHeightImpl() const override;
54
55 };
56}
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
static const std::array< std::string, metadata_count > metadata_names
void SetDataItemStack(const ProtocolCraft::Slot &data_item_stack)
static constexpr int hierarchy_metadata_count
virtual EntityType GetType() const override
virtual double GetWidthImpl() const override
static constexpr int metadata_count
virtual double GetHeightImpl() const override
virtual std::string GetName() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45