Botcraft 26.3
Loading...
Searching...
No Matches
AbstractHorseEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9 private:
10 static constexpr std::array metadata_names{
11 std::string_view("data_id_flags"),
12#if PROTOCOL_VERSION < 762 /* < 1.19.4 */
13 std::string_view("data_id_owner_uuid"),
14#endif
15 };
16 protected:
17 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
19
20 public:
22 virtual ~AbstractHorseEntity();
23
24 virtual bool IsAbstractHorse() const override;
25
26 virtual ProtocolCraft::Json::Value Serialize() const override;
27
28 // Metadata stuff
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}
virtual bool IsAbstractHorse() const override
void SetDataIdFlags(const char data_id_flags)
static constexpr std::array metadata_names
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int hierarchy_metadata_count
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