Botcraft 1.21.4
Loading...
Searching...
No Matches
RaftEntity.cpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
3
4
5namespace Botcraft
6{
7 RaftEntity::RaftEntity(const EntityType type) : type(type)
8 {
9
10 }
11
16
17
18 std::string RaftEntity::GetName() const
19 {
20 return "raft";
21 }
22
24 {
25 return type;
26 }
27
28
30 {
31 return "raft";
32 }
33
34 bool RaftEntity::IsRaft() const
35 {
36 return true;
37 }
38
40 {
42
43 output["type"] = type;
44
45 return output;
46 }
47
49 {
50 return 1.375;
51 }
52
54 {
55 return 0.5625;
56 }
57
58}
59#endif
virtual ProtocolCraft::Json::Value Serialize() const override
virtual bool IsRaft() const override
RaftEntity(const EntityType type)
Definition RaftEntity.cpp:7
virtual ProtocolCraft::Json::Value Serialize() const override
virtual double GetHeightImpl() const override
static std::string GetClassName()
virtual EntityType GetType() const override
virtual std::string GetName() const override
const EntityType type
virtual double GetWidthImpl() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45