Botcraft
1.21.4
Loading...
Searching...
No Matches
EntityProperty.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
#include <string>
5
6
#include "
protocolCraft/NetworkType.hpp
"
7
#include "
protocolCraft/Types/EntityModifierData.hpp
"
8
#if PROTOCOL_VERSION < 766
/* < 1.20.5 */
9
#include "
protocolCraft/Types/Identifier.hpp
"
10
#endif
11
12
namespace
ProtocolCraft
13
{
14
class
EntityProperty
:
public
NetworkType
15
{
16
#if PROTOCOL_VERSION < 735
/* < 1.16 */
17
SERIALIZED_FIELD
(Key, std::string);
18
#elif PROTOCOL_VERSION < 766
/* < 1.20.5 */
19
SERIALIZED_FIELD
(Key,
Identifier
);
20
#else
21
SERIALIZED_FIELD
(Key,
VarInt
);
22
#endif
23
SERIALIZED_FIELD
(Value,
double
);
24
SERIALIZED_FIELD
(Modifiers, std::vector<EntityModifierData>);
25
26
DECLARE_READ_WRITE_SERIALIZE
;
27
};
28
}
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
EntityModifierData.hpp
Identifier.hpp
NetworkType.hpp
ProtocolCraft::EntityProperty
Definition
EntityProperty.hpp:15
ProtocolCraft::EntityProperty::SERIALIZED_FIELD
SERIALIZED_FIELD(Modifiers, std::vector< EntityModifierData >)
ProtocolCraft::EntityProperty::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
EntityProperty.hpp:26
ProtocolCraft::EntityProperty::SERIALIZED_FIELD
SERIALIZED_FIELD(Key, VarInt)
ProtocolCraft::EntityProperty::SERIALIZED_FIELD
SERIALIZED_FIELD(Value, double)
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Types
EntityProperty.hpp
Generated by
1.9.8