Botcraft 1.21.4
Loading...
Searching...
No Matches
AxolotlEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 754 /* > 1.16.5 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 protected:
11 static constexpr int metadata_count = 3;
12 static const std::array<std::string, metadata_count> metadata_names;
14
15 public:
17 virtual ~AxolotlEntity();
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 int GetDataVariant() const;
34 bool GetDataPlayingDead() const;
35 bool GetFromBucket() const;
36
37 void SetDataVariant(const int data_variant);
38 void SetDataPlayingDead(const bool data_playing_dead);
39 void SetFromBucket(const bool from_bucket);
40
41 // Attribute stuff
42 double GetAttributeAttackDamageValue() 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
static constexpr int metadata_count
static std::string GetClassName()
bool GetDataPlayingDead() const
void SetFromBucket(const bool from_bucket)
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual double GetWidthImpl() const override
void SetDataPlayingDead(const bool data_playing_dead)
double GetAttributeAttackDamageValue() const
virtual EntityType GetType() const override
static const std::array< std::string, metadata_count > metadata_names
void SetDataVariant(const int data_variant)
static EntityType GetClassType()
virtual double GetHeightImpl() 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