Botcraft 26.3
Loading...
Searching...
No Matches
ThrowableItemProjectileEntity.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:
29
30 virtual bool IsThrowableItemProjectile() 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 ProtocolCraft::Json::Value Serialize() const override
void SetDataItemStack(const ProtocolCraft::Slot &data_item_stack)
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
Definition Json.hpp:45