Botcraft
1.21.4
Loading...
Searching...
No Matches
ClientboundUseBedPacket.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION < 461
/* < 1.14 */
2
#pragma once
3
4
#include "
protocolCraft/BaseMessage.hpp
"
5
#include "
protocolCraft/Types/NetworkPosition.hpp
"
6
7
namespace
ProtocolCraft
8
{
9
class
ClientboundUseBedPacket :
public
BaseMessage<ClientboundUseBedPacket>
10
{
11
public
:
12
static
constexpr
std::string_view packet_name =
"Use Bed"
;
13
14
SERIALIZED_FIELD
(EntityId, VarInt);
15
SERIALIZED_FIELD
(Location, NetworkPosition);
16
17
DECLARE_READ_WRITE_SERIALIZE
;
18
};
19
}
//ProtocolCraft
20
#endif
DECLARE_READ_WRITE_SERIALIZE
#define DECLARE_READ_WRITE_SERIALIZE
Define auto serializable utilities and declare ReadImpl, WriteImpl and SerializeImpl virtual function...
Definition
AutoSerializedMacros.hpp:123
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
BaseMessage.hpp
NetworkPosition.hpp
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Messages
Play
Clientbound
ClientboundUseBedPacket.hpp
Generated by
1.9.8