Botcraft 1.21.4
Loading...
Searching...
No Matches
AbstractHorseEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9 protected:
10#if PROTOCOL_VERSION < 762 /* < 1.19.4 */
11 static constexpr int metadata_count = 2;
12#else
13 static constexpr int metadata_count = 1;
14#endif
15 static const std::array<std::string, metadata_count> metadata_names;
17
18 public:
20 virtual ~AbstractHorseEntity();
21
22 virtual bool IsAbstractHorse() const override;
23
24 virtual ProtocolCraft::Json::Value Serialize() const override;
25
26 // Metadata stuff
27 virtual void SetMetadataValue(const int index, const std::any& value) override;
28
29 char GetDataIdFlags() const;
30#if PROTOCOL_VERSION < 762 /* < 1.19.4 */
31 std::optional<ProtocolCraft::UUID> GetDataIdOwnerUuid() const;
32#endif
33
34 void SetDataIdFlags(const char data_id_flags);
35#if PROTOCOL_VERSION < 762 /* < 1.19.4 */
36 void SetDataIdOwnerUuid(const std::optional<ProtocolCraft::UUID>& data_id_owner_uuid);
37#endif
38
39 // Attribute stuff
40#if PROTOCOL_VERSION < 766 /* < 1.20.5 */
41 double GetAttributeJumpStrengthValue() const;
42#endif
43
44 };
45}
static const std::array< std::string, metadata_count > metadata_names
virtual bool IsAbstractHorse() const override
void SetDataIdFlags(const char data_id_flags)
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int hierarchy_metadata_count
virtual void SetMetadataValue(const int index, const std::any &value) override
static constexpr int metadata_count
static constexpr int hierarchy_metadata_count
double GetAttributeJumpStrengthValue() const
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45