Botcraft 1.21.4
Loading...
Searching...
No Matches
MushroomCowEntity.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Botcraft
6{
8 {
9 protected:
10#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
11 static constexpr int metadata_count = 1;
12 static const std::array<std::string, metadata_count> metadata_names;
13#else
14 static constexpr int metadata_count = 0;
15#endif
17
18 public:
20 virtual ~MushroomCowEntity();
21
22 // Object related stuff
23 virtual std::string GetName() const override;
24 virtual EntityType GetType() const override;
25
26 // Static stuff, for easier comparison
27 static std::string GetClassName();
28 static EntityType GetClassType();
29
30
31#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
32 virtual ProtocolCraft::Json::Value Serialize() const override;
33
34 // Metadata stuff
35 virtual void SetMetadataValue(const int index, const std::any& value) override;
36
37 std::string GetDataType() const;
38
39 void SetDataType(const std::string& data_type);
40#endif
41
42 protected:
43 virtual double GetWidthImpl() const override;
44 virtual double GetHeightImpl() const override;
45
46 };
47}
static constexpr int metadata_count
Definition CowEntity.hpp:10
static constexpr int hierarchy_metadata_count
Definition CowEntity.hpp:11
virtual double GetWidthImpl() const override
virtual EntityType GetType() const override
void SetDataType(const std::string &data_type)
virtual double GetHeightImpl() const override
virtual std::string GetName() const override
static constexpr int hierarchy_metadata_count
static std::string GetClassName()
static const std::array< std::string, metadata_count > metadata_names
virtual void SetMetadataValue(const int index, const std::any &value) override
static constexpr int metadata_count
virtual ProtocolCraft::Json::Value Serialize() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45