Botcraft 26.3
Loading...
Searching...
No Matches
SulfurCubeEntity.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 775 /* > 26.1.2 */
2#pragma once
3
5
6namespace Botcraft
7{
9 {
10 private:
11 static constexpr std::array metadata_names{
12 std::string_view("max_fuse"),
13 std::string_view("from_bucket"),
14 };
15 protected:
16 static constexpr int metadata_count = static_cast<int>(metadata_names.size());
18
19 public:
21 virtual ~SulfurCubeEntity();
22
23 // Object related stuff
24 virtual std::string GetName() const override;
25 virtual EntityType GetType() const override;
26
27 // Static stuff, for easier comparison
28 static std::string GetClassName();
29 static EntityType GetClassType();
30
31
32 virtual ProtocolCraft::Json::Value Serialize() const override;
33
34 // Metadata stuff
35 int GetMaxFuse() const;
36 bool GetFromBucket() const;
37
38 void SetMaxFuse(const int max_fuse);
39 void SetFromBucket(const bool from_bucket);
40
41 // Attribute stuff
42 double GetAttributeTemptRangeValue() const;
43
44 protected:
45 virtual void SizeChanged(const int new_size) override;
46 virtual double GetWidthImpl() const override;
47 virtual double GetHeightImpl() const override;
48
49 };
50}
51#endif
virtual double GetHeightImpl() const override
double GetAttributeTemptRangeValue() const
virtual EntityType GetType() const override
static constexpr std::array metadata_names
virtual double GetWidthImpl() const override
virtual ProtocolCraft::Json::Value Serialize() const override
void SetMaxFuse(const int max_fuse)
static EntityType GetClassType()
static constexpr int hierarchy_metadata_count
void SetFromBucket(const bool from_bucket)
static constexpr int metadata_count
virtual void SizeChanged(const int new_size) override
virtual std::string GetName() const override
static std::string GetClassName()
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45