Botcraft 26.2
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 protected:
11 static constexpr int metadata_count = 2;
12 static const std::array<std::string, metadata_count> metadata_names;
14
15 public:
17 virtual ~SulfurCubeEntity();
18
19 // Object related stuff
20 virtual std::string GetName() const override;
21 virtual EntityType GetType() const override;
22
23 // Static stuff, for easier comparison
24 static std::string GetClassName();
25 static EntityType GetClassType();
26
27
28 virtual ProtocolCraft::Json::Value Serialize() const override;
29
30 // Metadata stuff
31 virtual void SetMetadataValue(const int index, const std::any& value) override;
32
33 int GetMaxFuse() const;
34 bool GetFromBucket() const;
35
36 void SetMaxFuse(const int max_fuse);
37 void SetFromBucket(const bool from_bucket);
38
39 // Attribute stuff
40 double GetAttributeTemptRangeValue() const;
41
42 protected:
43 virtual void SizeChanged(const int new_size) override;
44 virtual double GetWidthImpl() const override;
45 virtual double GetHeightImpl() const override;
46
47 };
48}
49#endif
virtual double GetHeightImpl() const override
double GetAttributeTemptRangeValue() const
virtual EntityType GetType() const override
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 void SetMetadataValue(const int index, const std::any &value) override
virtual std::string GetName() const override
static const std::array< std::string, metadata_count > metadata_names
static std::string GetClassName()
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45