Botcraft 1.21.4
Loading...
Searching...
No Matches
ToolRule.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
5
6#include <optional>
7
8namespace ProtocolCraft
9{
10 namespace Components
11 {
12 class ToolRule : public NetworkType
13 {
15 SERIALIZED_FIELD(Speed, std::optional<float>);
16 SERIALIZED_FIELD(CorrectForDrop, std::optional<bool>);
17
19 };
20 }
21}
22#endif
SERIALIZED_FIELD(CorrectForDrop, std::optional< bool >)
SERIALIZED_FIELD(Speed, std::optional< float >)