Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundSetTimePacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
5
namespace
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
18
DECLARE_READ_WRITE_SERIALIZE
;
19
};
20
}
//ProtocolCraft
BaseMessage.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ClientboundSetTimePacket
Definition
ClientboundSetTimePacket.hpp:8
ProtocolCraft::ClientboundSetTimePacket::packet_name
static constexpr std::string_view packet_name
Definition
ClientboundSetTimePacket.hpp:10
ProtocolCraft::ClientboundSetTimePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ClientboundSetTimePacket.hpp:18
ProtocolCraft::ClientboundSetTimePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(DayTime, long long int)
ProtocolCraft::ClientboundSetTimePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(GameTime, long long int)
ProtocolCraft::ClientboundSetTimePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(TickDayTime, bool)
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundSetTimePacket.hpp
Generated by
1.9.8