Botcraft 1.21.4
Loading...
Searching...
No Matches
ClientboundSetTimePacket.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace ProtocolCraft
6{
7 class ClientboundSetTimePacket : public BaseMessage<ClientboundSetTimePacket>
8 {
9 public:
10 static constexpr std::string_view packet_name = "Set Time";
11
12 SERIALIZED_FIELD(GameTime, long long int);
13 SERIALIZED_FIELD(DayTime, long long int);
14#if PROTOCOL_VERSION > 767 /* > 1.21.1 */
15 SERIALIZED_FIELD(TickDayTime, bool);
16#endif
17
19 };
20} //ProtocolCraft
static constexpr std::string_view packet_name
SERIALIZED_FIELD(DayTime, long long int)
SERIALIZED_FIELD(GameTime, long long int)