Botcraft
26.3
Loading...
Searching...
No Matches
TrimMaterial.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
#include "
protocolCraft/NetworkType.hpp
"
4
#include "
protocolCraft/Types/Chat/Chat.hpp
"
5
#if PROTOCOL_VERSION > 767
/* > 1.21.1 */
&& PROTOCOL_VERSION < 770
/* < 1.21.5 */
6
#include "
protocolCraft/Types/Identifier.hpp
"
7
#endif
8
#if PROTOCOL_VERSION > 769
/* > 1.21.4 */
&& PROTOCOL_VERSION < 777
/* < 26.3 */
9
#include "
protocolCraft/Types/Components/Subtypes/MaterialAssetGroup.hpp
"
10
#endif
11
#if PROTOCOL_VERSION > 776
/* > 26.2 */
12
#include "
protocolCraft/Types/Identifier.hpp
"
13
#endif
14
15
namespace
ProtocolCraft
16
{
17
namespace
Components
18
{
19
class
TrimMaterial
:
public
NetworkType
20
{
21
#if PROTOCOL_VERSION < 770
/* < 1.21.5 */
22
SERIALIZED_FIELD
(AssetName, std::string);
23
SERIALIZED_FIELD
(
Ingredient
,
VarInt
);
24
#if PROTOCOL_VERSION < 769
/* < 1.21.4 */
25
SERIALIZED_FIELD
(ItemModelIndex,
float
);
26
#endif
27
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
28
SERIALIZED_FIELD
(OverrideArmorMaterials, std::map<VarInt, std::string>);
29
#else
30
SERIALIZED_FIELD
(OverrideArmorMaterials, std::map<Identifier, std::string>);
31
#endif
32
#elif PROTOCOL_VERSION < 777
/* < 26.3 */
33
SERIALIZED_FIELD
(Assets, MaterialAssetGroup);
34
#endif
35
#if PROTOCOL_VERSION > 776
/* > 26.2 */
36
SERIALIZED_FIELD
(PaletteId,
Identifier
);
37
#endif
38
SERIALIZED_FIELD
(Description,
Chat
);
39
40
DECLARE_READ_WRITE_SERIALIZE
;
41
};
42
}
43
}
44
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
Chat.hpp
Identifier.hpp
MaterialAssetGroup.hpp
NetworkType.hpp
ProtocolCraft::Chat
Definition
Chat.hpp:18
ProtocolCraft::Components::TrimMaterial
Definition
TrimMaterial.hpp:20
ProtocolCraft::Components::TrimMaterial::SERIALIZED_FIELD
SERIALIZED_FIELD(Description, Chat)
ProtocolCraft::Components::TrimMaterial::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
TrimMaterial.hpp:40
ProtocolCraft::Components::TrimMaterial::SERIALIZED_FIELD
SERIALIZED_FIELD(PaletteId, Identifier)
ProtocolCraft::Identifier
Definition
Identifier.hpp:8
ProtocolCraft::Ingredient
Definition
Ingredient.hpp:14
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Types
Components
Subtypes
TrimMaterial.hpp
Generated by
1.9.8