Botcraft 26.3
Loading...
Searching...
No Matches
WardenEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 758 /* > 1.18.2 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("client_anger_level"),
13 };
14 protected:
15 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
17
18 public:
20 virtual ~WardenEntity();
21
22 // Object related stuff
23 virtual std::string GetName() const override;
24 virtual EntityType GetType() const override;
25
26 // Static stuff, for easier comparison
27 static std::string GetClassName();
28 static EntityType GetClassType();
29
30
31 virtual ProtocolCraft::Json::Value Serialize() const override;
32
33 // Metadata stuff
34 int GetClientAngerLevel() const;
35
36 void SetClientAngerLevel(const int client_anger_level);
37
38 protected:
39 virtual double GetWidthImpl() const override;
40 virtual double GetHeightImpl() const override;
41
42 };
43}
44#endif
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
int GetClientAngerLevel() const
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int metadata_count
static std::string GetClassName()
static EntityType GetClassType()
virtual EntityType GetType() const override
virtual double GetHeightImpl() const override
virtual double GetWidthImpl() const override
static constexpr std::array metadata_names
static constexpr int hierarchy_metadata_count
void SetClientAngerLevel(const int client_anger_level)
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