Botcraft
1.21.4
Loading...
Searching...
No Matches
ServerboundSetCreativeModeSlotPacket.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
protocolCraft/BaseMessage.hpp
"
4
#include "
protocolCraft/Types/Item/Slot.hpp
"
5
6
namespace
ProtocolCraft
7
{
8
class
ServerboundSetCreativeModeSlotPacket
:
public
BaseMessage
<ServerboundSetCreativeModeSlotPacket>
9
{
10
public
:
11
static
constexpr
std::string_view
packet_name
=
"Set Creative Mode Slot"
;
12
13
SERIALIZED_FIELD
(SlotNum,
short
);
14
SERIALIZED_FIELD
(
ItemStack
,
Slot
);
15
16
DECLARE_READ_WRITE_SERIALIZE
;
17
};
18
}
//ProtocolCraft
BaseMessage.hpp
Slot.hpp
ProtocolCraft::BaseMessage
Definition
BaseMessage.hpp:11
ProtocolCraft::ServerboundSetCreativeModeSlotPacket
Definition
ServerboundSetCreativeModeSlotPacket.hpp:9
ProtocolCraft::ServerboundSetCreativeModeSlotPacket::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
ServerboundSetCreativeModeSlotPacket.hpp:16
ProtocolCraft::ServerboundSetCreativeModeSlotPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(ItemStack, Slot)
ProtocolCraft::ServerboundSetCreativeModeSlotPacket::packet_name
static constexpr std::string_view packet_name
Definition
ServerboundSetCreativeModeSlotPacket.hpp:11
ProtocolCraft::ServerboundSetCreativeModeSlotPacket::SERIALIZED_FIELD
SERIALIZED_FIELD(SlotNum, short)
ProtocolCraft::Slot
Definition
Slot.hpp:13
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::BrigadierPropertyType::ItemStack
@ ItemStack
protocolCraft
include
protocolCraft
Messages
Play
Serverbound
ServerboundSetCreativeModeSlotPacket.hpp
Generated by
1.9.8