Botcraft 26.3
Loading...
Searching...
No Matches
AbstractBoatEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
2#pragma once
4
5namespace Botcraft
6{
8 {
9 private:
10 static constexpr std::array metadata_names{
11 std::string_view("data_id_paddle_left"),
12 std::string_view("data_id_paddle_right"),
13 std::string_view("data_id_bubble_time"),
14 };
15 protected:
16 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
18
19 public:
21 virtual ~AbstractBoatEntity();
22
23 virtual bool IsAbstractBoat() const override;
24
25 virtual ProtocolCraft::Json::Value Serialize() const override;
26
27 // Metadata stuff
28 bool GetDataIdPaddleLeft() const;
29 bool GetDataIdPaddleRight() const;
30 int GetDataIdBubbleTime() const;
31
32 void SetDataIdPaddleLeft(const bool data_id_paddle_left);
33 void SetDataIdPaddleRight(const bool data_id_paddle_right);
34 void SetDataIdBubbleTime(const int data_id_bubble_time);
35
36 };
37}
38#endif
void SetDataIdPaddleRight(const bool data_id_paddle_right)
static constexpr std::array metadata_names
static constexpr int metadata_count
void SetDataIdBubbleTime(const int data_id_bubble_time)
virtual bool IsAbstractBoat() const override
virtual ProtocolCraft::Json::Value Serialize() const override
void SetDataIdPaddleLeft(const bool data_id_paddle_left)
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count
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