Botcraft 1.21.11
Loading...
Searching...
No Matches
ZombieNautilusEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 773 /* > 1.21.10 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 protected:
11 static constexpr int metadata_count = 1;
12 static const std::array<std::string, metadata_count> metadata_names;
14
15 public:
17 virtual ~ZombieNautilusEntity();
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 virtual ProtocolCraft::Json::Value Serialize() const override;
28
29 // Metadata stuff
30 virtual void SetMetadataValue(const int index, const std::any& value) override;
31
32 int GetDataVariantId() const;
33
34 void SetDataVariantId(const int data_variant_id);
35
36 protected:
37 virtual double GetWidthImpl() const override;
38 virtual double GetHeightImpl() const override;
39
40 };
41}
42#endif
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
static constexpr int hierarchy_metadata_count
virtual double GetWidthImpl() const override
void SetDataVariantId(const int data_variant_id)
virtual EntityType GetType() const override
virtual double GetHeightImpl() const override
static const std::array< std::string, metadata_count > metadata_names
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