Botcraft 26.3
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#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
13 private:
14 static constexpr std::array metadata_names{
15 std::string_view("data_item_stack"),
16 };
17#endif
18 protected:
19#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
20 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
21#else
22 static constexpr int metadata_count = 0;
23#endif
25
26 public:
28 virtual ~EyeOfEnderEntity();
29
30 // Object related stuff
31 virtual std::string GetName() const override;
32 virtual EntityType GetType() const override;
33
34 // Static stuff, for easier comparison
35 static std::string GetClassName();
36 static EntityType GetClassType();
37
38
39#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
40 virtual ProtocolCraft::Json::Value Serialize() const override;
41
42 // Metadata stuff
44
45 void SetDataItemStack(const ProtocolCraft::Slot& data_item_stack);
46#endif
47
48 protected:
49 virtual double GetWidthImpl() const override;
50 virtual double GetHeightImpl() const override;
51
52 };
53}
static constexpr int hierarchy_metadata_count
Definition Entity.hpp:73
static constexpr int metadata_count
Definition Entity.hpp:72
virtual double GetWidthImpl() const override
virtual EntityType GetType() const override
virtual std::string GetName() const override
virtual ProtocolCraft::Json::Value Serialize() const override
static constexpr int hierarchy_metadata_count
void SetDataItemStack(const ProtocolCraft::Slot &data_item_stack)
static EntityType GetClassType()
virtual double GetHeightImpl() const override
static constexpr std::array metadata_names
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