Botcraft 26.3
Loading...
Searching...
No Matches
CopperGolemEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 772 /* > 1.21.8 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("copper_golem_state"),
13 };
14 protected:
15 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
17
18 public:
20 virtual ~CopperGolemEntity();
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 GetCopperGolemState() const;
35
36 void SetCopperGolemState(const int copper_golem_state);
37
38 protected:
39 virtual double GetWidthImpl() const override;
40 virtual double GetHeightImpl() const override;
41
42 };
43}
44#endif
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
virtual std::string GetName() const override
static std::string GetClassName()
virtual EntityType GetType() const override
void SetCopperGolemState(const int copper_golem_state)
virtual double GetWidthImpl() const override
static constexpr std::array metadata_names
static constexpr int hierarchy_metadata_count
virtual double GetHeightImpl() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45