Botcraft 1.21.4
Loading...
Searching...
No Matches
AbstractIllagerEntity.hpp
Go to the documentation of this file.
1#pragma once
2
3#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
5#else
7#endif
8
9namespace Botcraft
10{
11#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
13#else
15#endif
16 {
17 protected:
18#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
19 static constexpr int metadata_count = 0;
20#else
21 static constexpr int metadata_count = 1;
22 static const std::array<std::string, metadata_count> metadata_names;
23#endif
24#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
26#else
28#endif
29
30 public:
32 virtual ~AbstractIllagerEntity();
33
34 virtual bool IsAbstractIllager() const override;
35
36
37#if PROTOCOL_VERSION < 405 /* < 1.14 */
38 virtual ProtocolCraft::Json::Value Serialize() const override;
39
40 // Metadata stuff
41 virtual void SetMetadataValue(const int index, const std::any& value) override;
42
43 char GetHasTarget() const;
44
45 void SetHasTarget(const char has_target);
46#endif
47 };
48}
virtual bool IsAbstractIllager() const override
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
static const std::array< std::string, metadata_count > metadata_names
virtual void SetMetadataValue(const int index, const std::any &value) 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