Botcraft
26.1.2
Loading...
Searching...
No Matches
ServerboundSetGameRulePacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 774
/* > 1.21.11 */
2
#pragma once
3
4
#include "
protocolCraft/BasePacket.hpp
"
5
#include "
protocolCraft/Types/SetGameRuleEntry.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ServerboundSetGameRulePacket
:
public
BasePacket
<ServerboundSetGameRulePacket>
10
{
11
public
:
12
static
constexpr
std::string_view
packet_name
=
"Set Game Rule"
;
13
14
SERIALIZED_FIELD
(Entries, std::vector<SetGameRuleEntry>);
15
16
DECLARE_READ_WRITE_SERIALIZE
;
17
};
18
}
//ProtocolCraft
19
#endif
BasePacket.hpp
SetGameRuleEntry.hpp
ProtocolCraft::BasePacket
Definition
BasePacket.hpp:11
ProtocolCraft::ServerboundSetGameRulePacket
Definition
ServerboundSetGameRulePacket.hpp:10
ProtocolCraft::ServerboundSetGameRulePacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundSetGameRulePacket.hpp:12
ProtocolCraft::ServerboundSetGameRulePacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundSetGameRulePacket.hpp:16
ProtocolCraft::ServerboundSetGameRulePacket::SERIALIZED_FIELD
SERIALIZED_FIELD(Entries, std::vector< SetGameRuleEntry >)
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Packets
Game
Serverbound
ServerboundSetGameRulePacket.hpp
Generated by
1.9.8