Botcraft 26.3
Loading...
Searching...
No Matches
AbstractSkeletonEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9#if PROTOCOL_VERSION < 405 /* < 1.14 */
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("is_swinging_arms"),
13 };
14#endif
15 protected:
16#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
17 static constexpr int metadata_count = 0;
18#else
19 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
20#endif
22
23 public:
26
27 virtual bool IsAbstractSkeleton() const override;
28
29
30#if PROTOCOL_VERSION < 405 /* < 1.14 */
31 virtual ProtocolCraft::Json::Value Serialize() const override;
32
33 // Metadata stuff
34 bool GetIsSwingingArms() const;
35
36 void SetIsSwingingArms(const bool is_swinging_arms);
37#endif
38
39 };
40}
virtual bool IsAbstractSkeleton() const override
static constexpr std::array metadata_names
Definition MobEntity.hpp:10
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