Botcraft 26.2
Loading...
Searching...
No Matches
AbstractCubeMobEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 775 /* > 26.1.2 */
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 ~AbstractCubeMobEntity();
18
19 virtual bool IsAbstractCubeMob() const override;
20
21 virtual ProtocolCraft::Json::Value Serialize() const override;
22
23 // Metadata stuff
24 virtual void SetMetadataValue(const int index, const std::any& value) override;
25
26 int GetIdSize() const;
27
28 void SetIdSize(const int id_size);
29
30 protected:
31 int GetIdSizeImpl() const;
32 virtual void SizeChanged(const int new_size);
33
34 };
35}
36#endif
static const std::array< std::string, metadata_count > metadata_names
virtual void SizeChanged(const int new_size)
virtual ProtocolCraft::Json::Value Serialize() const override
virtual bool IsAbstractCubeMob() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45