Botcraft 1.21.4
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 protected:
13#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
14 static constexpr int metadata_count = 1;
15 static const std::array<std::string, metadata_count> metadata_names;
16#else
17 static constexpr int metadata_count = 0;
18#endif
20
21 public:
24
25 virtual bool IsThrowableItemProjectile() const override;
26
27#if PROTOCOL_VERSION > 404 /* > 1.13.2 */
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
34
35 void SetDataItemStack(const ProtocolCraft::Slot& data_item_stack);
36#endif
37
38 };
39}
virtual ProtocolCraft::Json::Value Serialize() const override
virtual void SetMetadataValue(const int index, const std::any &value) override
static const std::array< std::string, metadata_count > metadata_names
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