Botcraft 26.3
Loading...
Searching...
No Matches
AbstractVillagerEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 477 /* > 1.14 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("data_unhappy_counter"),
13 };
14 protected:
15 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
17
18 public:
21
22 virtual bool IsAbstractVillager() const override;
23
24 virtual ProtocolCraft::Json::Value Serialize() const override;
25
26 // Metadata stuff
27 int GetDataUnhappyCounter() const;
28
29 void SetDataUnhappyCounter(const int data_unhappy_counter);
30
31 };
32}
33#endif
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr std::array metadata_names
void SetDataUnhappyCounter(const int data_unhappy_counter)
virtual bool IsAbstractVillager() const override
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