Botcraft 26.3
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 private:
11 static constexpr std::array metadata_names{
12 std::string_view("is_celebrating"),
13 };
14 protected:
15 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
17
18 public:
20 virtual ~RaiderEntity();
21
22 virtual bool IsRaider() const override;
23
24 virtual ProtocolCraft::Json::Value Serialize() const override;
25
26 // Metadata stuff
27 bool GetIsCelebrating() const;
28
29 void SetIsCelebrating(const bool is_celebrating);
30
31 };
32}
33#endif
static constexpr std::array metadata_names
static constexpr int metadata_count
void SetIsCelebrating(const bool is_celebrating)
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