Botcraft 26.2
Loading...
Searching...
No Matches
DataComponentTypeFoodProperties.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 765 /* > 1.20.4 */
2#pragma once
4#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
6#if PROTOCOL_VERSION > 766 /* > 1.20.6 */
8
9#include <optional>
10#endif
11#include <vector>
12#endif
13
14
15namespace ProtocolCraft
16{
17 namespace Components
18 {
20 {
22 SERIALIZED_FIELD(Saturation, float);
23 SERIALIZED_FIELD(CanAlwaysEat, bool);
24#if PROTOCOL_VERSION < 768 /* < 1.21.2 */
25 SERIALIZED_FIELD(EatSeconds, float);
26#if PROTOCOL_VERSION > 766 /* > 1.20.6 */
27 SERIALIZED_FIELD(UsingConvertsTo, std::optional<Slot>);
28#endif
29 SERIALIZED_FIELD(Effects, std::vector<PossibleEffect>);
30#endif
31
33 };
34 }
35}
36#endif
#define SERIALIZED_FIELD(Name,...)