Botcraft 1.21.4
Loading...
Searching...
No Matches
ServerboundEditBookPacket.hpp
Go to the documentation of this file.
1#if PROTOCOL_VERSION > 385 /* > 1.12.2 */
2#pragma once
3
4#if PROTOCOL_VERSION > 755 /* > 1.17 */
5#include <vector>
6#include <string>
7#endif
8
10#if PROTOCOL_VERSION < 756 /* < 1.17.1 */
12#endif
13
14namespace ProtocolCraft
15{
16 class ServerboundEditBookPacket : public BaseMessage<ServerboundEditBookPacket>
17 {
18 public:
19 static constexpr std::string_view packet_name = "Edit Book";
20
21#if PROTOCOL_VERSION < 756 /* < 1.17.1 */
23 SERIALIZED_FIELD(Signing, bool);
24#endif
25#if PROTOCOL_VERSION > 393 /* > 1.13 */
27#endif
28#if PROTOCOL_VERSION > 755 /* > 1.17 */
29 SERIALIZED_FIELD(Pages, std::vector<std::string>);
30 SERIALIZED_FIELD(Title, std::optional<std::string>);
31#endif
32
34 };
35} //ProtocolCraft
36#endif
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(Pages, std::vector< std::string >)
SERIALIZED_FIELD(Title, std::optional< std::string >)