Botcraft 26.2
Loading...
Searching...
No Matches
DataComponentTypeTool.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
5
6#include <vector>
7
8namespace ProtocolCraft
9{
10 namespace Components
11 {
13 {
14 SERIALIZED_FIELD(Rules, std::vector<ToolRule>);
15 SERIALIZED_FIELD(DefaultMiningSpeed, float);
16 SERIALIZED_FIELD(DamagePerBlock, VarInt);
17#if PROTOCOL_VERSION > 769 /* > 1.21.4 */
18 SERIALIZED_FIELD(CanDestroyBlocksInCreative, bool);
19#endif
20
22 };
23 }
24}
25#endif
SERIALIZED_FIELD(CanDestroyBlocksInCreative, bool)
SERIALIZED_FIELD(Rules, std::vector< ToolRule >)