Botcraft 26.3
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#if PROTOCOL_VERSION < 405 /* < 1.14 */
18 private:
19 static constexpr std::array metadata_names{
20 std::string_view("has_target"),
21 };
22#endif
23 protected:
24#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
25 static constexpr int metadata_count = 0;
26#else
27 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
28#endif
29#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
31#else
33#endif
34
35 public:
37 virtual ~AbstractIllagerEntity();
38
39 virtual bool IsAbstractIllager() const override;
40
41
42#if PROTOCOL_VERSION < 405 /* < 1.14 */
43 virtual ProtocolCraft::Json::Value Serialize() const override;
44
45 // Metadata stuff
46 char GetHasTarget() const;
47
48 void SetHasTarget(const char has_target);
49#endif
50 };
51}
virtual bool IsAbstractIllager() const override
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
static constexpr std::array metadata_names
static constexpr int metadata_count
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