Botcraft 26.2
Loading...
Searching...
No Matches
MagmaCubeEntity.hpp
Go to the documentation of this file.
1#pragma once
2
3#if PROTOCOL_VERSION < 776 /* < 26.2 */
5#else
7#endif
8
9namespace Botcraft
10{
11#if PROTOCOL_VERSION < 776 /* < 26.2 */
12 class MagmaCubeEntity : public SlimeEntity
13#else
15#endif
16 {
17 protected:
18 static constexpr int metadata_count = 0;
19#if PROTOCOL_VERSION < 776 /* < 26.2 */
21#else
23#endif
24
25 public:
27 virtual ~MagmaCubeEntity();
28
29 // Object related stuff
30 virtual std::string GetName() const override;
31 virtual EntityType GetType() const override;
32
33 // Static stuff, for easier comparison
34 static std::string GetClassName();
35 static EntityType GetClassType();
36
37#if PROTOCOL_VERSION > 775 /* > 26.1.2 */
38 protected:
39 virtual void SizeChanged(const int new_size) override;
40 virtual double GetWidthImpl() const override;
41 virtual double GetHeightImpl() const override;
42#endif
43
44 };
45}
static EntityType GetClassType()
virtual EntityType GetType() const override
static constexpr int metadata_count
virtual std::string GetName() const override
virtual double GetWidthImpl() const override
static constexpr int hierarchy_metadata_count
virtual double GetHeightImpl() const override
virtual void SizeChanged(const int new_size) override
static std::string GetClassName()
static constexpr int hierarchy_metadata_count
static constexpr int metadata_count