Botcraft 26.3
Loading...
Searching...
No Matches
FireballEntity.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{
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 ~FireballEntity();
29
30 virtual bool IsFireball() const override;
31
32#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
33 virtual ProtocolCraft::Json::Value Serialize() const override;
34
35 // Metadata stuff
37
38 void SetDataItemStack(const ProtocolCraft::Slot& data_item_stack);
39#endif
40
41 };
42}
virtual bool IsFireball() const override
ProtocolCraft::Slot GetDataItemStack() const
static constexpr int metadata_count
static constexpr std::array metadata_names
static constexpr int hierarchy_metadata_count
void SetDataItemStack(const ProtocolCraft::Slot &data_item_stack)
virtual ProtocolCraft::Json::Value Serialize() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45