Botcraft 26.3
Loading...
Searching...
No Matches
HappyGhastEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 770 /* > 1.21.5 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("is_leash_holder"),
13 std::string_view("stays_still"),
14 };
15 protected:
16 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
18
19 public:
21 virtual ~HappyGhastEntity();
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 GetIsLeashHolder() const;
36 bool GetStaysStill() const;
37
38 void SetIsLeashHolder(const int is_leahs_holder);
39 void SetStaysStill(const int stays_still);
40
41 // Attribute stuff
42 double GetAttributeFlyingSpeedValue() const;
43
44 protected:
45 virtual double GetWidthImpl() const override;
46 virtual double GetHeightImpl() const override;
47
48 };
49}
50#endif
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
static constexpr int hierarchy_metadata_count
double GetAttributeFlyingSpeedValue() const
static EntityType GetClassType()
virtual std::string GetName() const override
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int metadata_count
void SetIsLeashHolder(const int is_leahs_holder)
virtual double GetWidthImpl() const override
static constexpr std::array metadata_names
virtual EntityType GetType() const override
virtual double GetHeightImpl() const override
static std::string GetClassName()
void SetStaysStill(const int stays_still)
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45