Botcraft 1.21.4
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 protected:
11 static constexpr int metadata_count = 2;
12 static const std::array<std::string, metadata_count> metadata_names;
14
15 public:
17 virtual ~CamelEntity();
18
19 // Object related stuff
20 virtual std::string GetName() const override;
21 virtual EntityType GetType() const override;
22
23 // Static stuff, for easier comparison
24 static std::string GetClassName();
25 static EntityType GetClassType();
26
27
28 virtual ProtocolCraft::Json::Value Serialize() const override;
29
30 // Metadata stuff
31 virtual void SetMetadataValue(const int index, const std::any& value) override;
32
33 bool GetDash() const;
34 long long int GetLastPoseChangeTick() const;
35
36 void SetDash(const bool dash);
37 void SetLastPoseChangeTick(const long long int last_pose_change_tick);
38
39 protected:
40 virtual double GetWidthImpl() const override;
41 virtual double GetHeightImpl() const override;
42
43 };
44}
45#endif
static constexpr int hierarchy_metadata_count
virtual EntityType GetType() const override
virtual double GetWidthImpl() const override
virtual double GetHeightImpl() const override
virtual void SetMetadataValue(const int index, const std::any &value) 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 const std::array< std::string, metadata_count > metadata_names
static constexpr int metadata_count
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45