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