Botcraft 26.3
Loading...
Searching...
No Matches
CamelEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 760 /* > 1.19.2 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("dash"),
13 std::string_view("last_pose_change_tick"),
14 };
15 protected:
16 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
18
19 public:
21 virtual ~CamelEntity();
22
23 // Object related stuff
24 virtual std::string GetName() const override;
25 virtual EntityType GetType() const override;
26
27 // Static stuff, for easier comparison
28 static std::string GetClassName();
29 static EntityType GetClassType();
30
31
32 virtual ProtocolCraft::Json::Value Serialize() const override;
33
34 // Metadata stuff
35 bool GetDash() const;
36 long long int GetLastPoseChangeTick() const;
37
38 void SetDash(const bool dash);
39 void SetLastPoseChangeTick(const long long int last_pose_change_tick);
40
41 protected:
42 virtual double GetWidthImpl() const override;
43 virtual double GetHeightImpl() const override;
44
45 };
46}
47#endif
static constexpr int hierarchy_metadata_count
virtual EntityType GetType() const override
static constexpr std::array metadata_names
virtual double GetWidthImpl() const override
virtual double GetHeightImpl() const override
static std::string GetClassName()
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
void SetDash(const bool dash)
long long int GetLastPoseChangeTick() const
void SetLastPoseChangeTick(const long long int last_pose_change_tick)
virtual ProtocolCraft::Json::Value Serialize() const override
static EntityType GetClassType()
static constexpr int metadata_count
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45