Botcraft 1.21.4
Loading...
Searching...
No Matches
ChestBoatEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
2#pragma once
3
4#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
6#else
8#endif
9
10namespace Botcraft
11{
12#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
13 class ChestBoatEntity : public BoatEntity
14#else
16#endif
17 {
18 protected:
19 static constexpr int metadata_count = 0;
20#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
22#else
24#endif
25
26 public:
27#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
29#else
31#endif
32 virtual ~ChestBoatEntity();
33
34 // Object related stuff
35 virtual std::string GetName() const override;
36 virtual EntityType GetType() const override;
37
38 // Static stuff, for easier comparison
39 static std::string GetClassName();
40#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
41 static EntityType GetClassType();
42#else
43 virtual bool IsChestBoat() const override;
44#endif
45
46
47#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
48 virtual ProtocolCraft::Json::Value Serialize() const override;
49#endif
50
51#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
52 protected:
54#endif
55
56 protected:
57 virtual double GetWidthImpl() const override;
58 virtual double GetHeightImpl() const override;
59
60 };
61}
62#endif
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
virtual double GetWidthImpl() const override
virtual double GetHeightImpl() const override
virtual ProtocolCraft::Json::Value Serialize() const override
virtual bool IsChestBoat() const override
static constexpr int metadata_count
virtual EntityType GetType() const override
static std::string GetClassName()
static constexpr int hierarchy_metadata_count
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