Botcraft 1.21.4
Loading...
Searching...
No Matches
ChestBoatEntity.cpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
3
4namespace Botcraft
5{
6#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
8#else
10#endif
11 {
12
13 }
14
19
20
21 std::string ChestBoatEntity::GetName() const
22 {
23 return "chest_boat";
24 }
25
27 {
28#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
29 return EntityType::ChestBoat;
30#else
31 return type;
32#endif
33 }
34
35
37 {
38 return "chest_boat";
39 }
40
41#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
42 EntityType ChestBoatEntity::GetClassType()
43 {
44 return EntityType::ChestBoat;
45 }
46#else
48 {
49 return true;
50 }
51#endif
52
53#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
55 {
57
58 output["type"] = type;
59
60 return output;
61 }
62#endif
63
65 {
66 return 1.375;
67 }
68
70 {
71 return 0.5625;
72 }
73
74}
75#endif
virtual double GetWidthImpl() const override
virtual double GetHeightImpl() const override
virtual ProtocolCraft::Json::Value Serialize() const override
virtual bool IsChestBoat() const override
virtual EntityType GetType() const override
static std::string GetClassName()
ChestBoatEntity(const EntityType type)
virtual std::string GetName() const override
virtual ProtocolCraft::Json::Value Serialize() const
Definition Entity.cpp:1095
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45