Botcraft 26.3
Loading...
Searching...
No Matches
ArmadilloEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("armadillo_state"),
13 };
14 protected:
15 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
17
18 public:
20 virtual ~ArmadilloEntity();
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 GetArmadilloState() const;
35
36 void SetArmadilloState(const int armadillo_state);
37
38 // Attribute stuff
39
40 protected:
41 virtual double GetWidthImpl() const override;
42 virtual double GetHeightImpl() const override;
43
44 };
45}
46#endif
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
virtual double GetHeightImpl() const override
static constexpr std::array metadata_names
virtual double GetWidthImpl() const override
static EntityType GetClassType()
static std::string GetClassName()
void SetArmadilloState(const int armadillo_state)
virtual EntityType GetType() const override
virtual ProtocolCraft::Json::Value Serialize() const override
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