Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundSectionBlocksUpdatePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#if PROTOCOL_VERSION < 739 /* < 1.16.2 */
7#endif
8
9namespace ProtocolCraft
10{
11 class ClientboundSectionBlocksUpdatePacket : public BaseMessage<ClientboundSectionBlocksUpdatePacket>
12 {
13 public:
14 static constexpr std::string_view packet_name = "Section Blocks Update";
15
16#if PROTOCOL_VERSION < 751 /* < 1.16.2 */
17 SERIALIZED_FIELD(ChunkX, int);
18 SERIALIZED_FIELD(ChunkZ, int);
19 SERIALIZED_FIELD(Records, std::vector<Record>);
20#endif
21#if PROTOCOL_VERSION > 736 /* > 1.16.1 */
22 SERIALIZED_FIELD(SectionPos, long long int);
23#endif
24#if PROTOCOL_VERSION > 736 /* > 1.16.1 */ && PROTOCOL_VERSION < 763 /* < 1.20 */
25 SERIALIZED_FIELD(SuppressLightUpdates, bool);
26#endif
27#if PROTOCOL_VERSION > 736 /* > 1.16.1 */
28 SERIALIZED_FIELD(PosState, std::vector<VarLong>);
29#endif
30
32 };
33}
#define SERIALIZED_FIELD(Name,...)
SERIALIZED_FIELD(PosState, std::vector< VarLong >)