Botcraft 26.3
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 private:
11 static constexpr std::array metadata_names{
12 std::string_view("id_size"),
13 };
14 protected:
15 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
17
18 public:
20 virtual ~AbstractCubeMobEntity();
21
22 virtual bool IsAbstractCubeMob() const override;
23
24 virtual ProtocolCraft::Json::Value Serialize() const override;
25
26 // Metadata stuff
27 int GetIdSize() const;
28
29 void SetIdSize(const int id_size);
30
31 protected:
32 void OnMetadataChangedImpl(const int index) override;
33 int GetIdSizeImpl() const;
34 virtual void SizeChanged(const int new_size);
35
36 };
37}
38#endif
virtual void SizeChanged(const int new_size)
virtual ProtocolCraft::Json::Value Serialize() const override
virtual bool IsAbstractCubeMob() const override
static constexpr std::array metadata_names
void OnMetadataChangedImpl(const int index) 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