Botcraft 1.21.4
Loading...
Searching...
No Matches
AgeableMobEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9 protected:
10 static constexpr int metadata_count = 1;
11 static const std::array<std::string, metadata_count> metadata_names;
13
14 public:
16 virtual ~AgeableMobEntity();
17
18 virtual bool IsAgeableMob() const override;
19
20 virtual ProtocolCraft::Json::Value Serialize() const override;
21
22 // Metadata stuff
23 virtual void SetMetadataValue(const int index, const std::any& value) override;
24
25 bool GetDataBabyId() const;
26
27 void SetDataBabyId(const bool data_baby_id);
28
29 };
30}
static constexpr int metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
static const std::array< std::string, metadata_count > metadata_names
static constexpr int hierarchy_metadata_count
virtual void SetMetadataValue(const int index, const std::any &value) override
virtual bool IsAgeableMob() const override
void SetDataBabyId(const bool data_baby_id)
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