Botcraft 1.21.4
Loading...
Searching...
No Matches
RaiderEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 404 /* > 1.13.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 ~RaiderEntity();
18
19 virtual bool IsRaider() 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 bool GetIsCelebrating() const;
27
28 void SetIsCelebrating(const bool is_celebrating);
29
30 };
31}
32#endif
static constexpr int metadata_count
static const std::array< std::string, metadata_count > metadata_names
void SetIsCelebrating(const bool is_celebrating)
virtual void SetMetadataValue(const int index, const std::any &value) override
bool GetIsCelebrating() const
virtual bool IsRaider() const override
virtual ProtocolCraft::Json::Value Serialize() const override
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