Botcraft 1.21.4
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 protected:
11 static constexpr int metadata_count = 1;
12 static const std::array<std::string, metadata_count> metadata_names;
14
15 public:
18
19 virtual bool IsAbstractVillager() const override;
20
21 virtual ProtocolCraft::Json::Value Serialize() const override;
22
23 // Metadata stuff
24 virtual void SetMetadataValue(const int index, const std::any& value) override;
25
26 int GetDataUnhappyCounter() const;
27
28 void SetDataUnhappyCounter(const int data_unhappy_counter);
29
30 };
31}
32#endif
static const std::array< std::string, metadata_count > metadata_names
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
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