Botcraft
1.21.5
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 */
9
#include "
protocolCraft/Types/Components/Subtypes/MaterialAssetGroup.hpp
"
10
#endif
11
12
namespace
ProtocolCraft
13
{
14
namespace
Components
15
{
16
class
TrimMaterial
:
public
NetworkType
17
{
18
#if PROTOCOL_VERSION < 770
/* < 1.21.5*/
19
SERIALIZED_FIELD
(AssetName, std::string);
20
SERIALIZED_FIELD
(
Ingredient
,
VarInt
);
21
#if PROTOCOL_VERSION < 769
/* < 1.21.4 */
22
SERIALIZED_FIELD
(ItemModelIndex,
float
);
23
#endif
24
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
25
SERIALIZED_FIELD
(OverrideArmorMaterials, std::map<VarInt, std::string>);
26
#else
27
SERIALIZED_FIELD
(OverrideArmorMaterials, std::map<Identifier, std::string>);
28
#endif
29
#else
30
SERIALIZED_FIELD
(Assets,
MaterialAssetGroup
);
31
#endif
32
SERIALIZED_FIELD
(Description,
Chat
);
33
34
DECLARE_READ_WRITE_SERIALIZE
;
35
};
36
}
37
}
38
#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::MaterialAssetGroup
Definition
MaterialAssetGroup.hpp:18
ProtocolCraft::Components::TrimMaterial
Definition
TrimMaterial.hpp:17
ProtocolCraft::Components::TrimMaterial::SERIALIZED_FIELD
SERIALIZED_FIELD(Assets, MaterialAssetGroup)
ProtocolCraft::Components::TrimMaterial::SERIALIZED_FIELD
SERIALIZED_FIELD(Description, Chat)
ProtocolCraft::Components::TrimMaterial::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
TrimMaterial.hpp:34
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