Botcraft
26.1.2
Loading...
Searching...
No Matches
ClientboundSetTimePacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BasePacket.hpp
"
4
5
#if PROTOCOL_VERSION > 774
/* > 1.21.11 */
6
#include "
protocolCraft/Types/ClockNetworkState.hpp
"
7
8
#include <map>
9
#endif
10
11
namespace
ProtocolCraft
12
{
13
class
ClientboundSetTimePacket
:
public
BasePacket
<ClientboundSetTimePacket>
14
{
15
public
:
16
static
constexpr
std::string_view
packet_name
=
"Set Time"
;
17
18
SERIALIZED_FIELD
(GameTime,
long
long
int
);
19
#if PROTOCOL_VERSION < 775
/* < 26.1 */
20
SERIALIZED_FIELD
(DayTime,
long
long
int
);
21
#if PROTOCOL_VERSION > 767
/* > 1.21.1 */
22
SERIALIZED_FIELD
(TickDayTime,
bool
);
23
#endif
24
#else
25
SERIALIZED_FIELD
(ClockUpdates, std::map<VarInt, ClockNetworkState>);
26
#endif
27
28
DECLARE_READ_WRITE_SERIALIZE
;
29
};
30
}
//ProtocolCraft
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BasePacket.hpp
ClockNetworkState.hpp
ProtocolCraft::BasePacket
Definition
BasePacket.hpp:11
ProtocolCraft::ClientboundSetTimePacket
Definition
ClientboundSetTimePacket.hpp:14
ProtocolCraft::ClientboundSetTimePacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundSetTimePacket.hpp:16
ProtocolCraft::ClientboundSetTimePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundSetTimePacket.hpp:28
ProtocolCraft::ClientboundSetTimePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(GameTime, long long int)
ProtocolCraft::ClientboundSetTimePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(ClockUpdates, std::map< VarInt, ClockNetworkState >)
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Packets
Game
Clientbound
ClientboundSetTimePacket.hpp
Generated by
1.9.8