Botcraft 1.21.4
Loading...
Searching...
No Matches
AbstractSkeletonEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9 protected:
10#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
11 static constexpr int metadata_count = 0;
12#else
13 static constexpr int metadata_count = 1;
14 static const std::array<std::string, metadata_count> metadata_names;
15#endif
17
18 public:
21
22 virtual bool IsAbstractSkeleton() const override;
23
24
25#if PROTOCOL_VERSION < 405 /* < 1.14 */
26 virtual ProtocolCraft::Json::Value Serialize() const override;
27
28 // Metadata stuff
29 virtual void SetMetadataValue(const int index, const std::any& value) override;
30
31 bool GetIsSwingingArms() const;
32
33 void SetIsSwingingArms(const bool is_swinging_arms);
34#endif
35
36 };
37}
virtual bool IsAbstractSkeleton() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
Definition MobEntity.cpp:49
static const std::array< std::string, metadata_count > metadata_names
Definition MobEntity.hpp:11
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45