Botcraft
1.21.5
Loading...
Searching...
No Matches
DataComponentTypeCustomModelData.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
2
#pragma once
3
#include "
protocolCraft/Types/Components/DataComponentType.hpp
"
4
5
namespace
ProtocolCraft
6
{
7
namespace
Components
8
{
9
class
DataComponentTypeCustomModelData
:
public
DataComponentType
10
{
11
#if PROTOCOL_VERSION < 769
/* < 1.21.4 */
12
SERIALIZED_FIELD
(Value,
VarInt
);
13
#else
14
SERIALIZED_FIELD
(Floats, std::vector<float>);
15
SERIALIZED_FIELD
(Flags, std::vector<bool>);
16
SERIALIZED_FIELD
(Strings, std::vector<std::string>);
17
SERIALIZED_FIELD
(Colors, std::vector<int>);
18
#endif
19
20
DECLARE_READ_WRITE_SERIALIZE
;
21
};
22
}
23
}
24
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
DataComponentType.hpp
ProtocolCraft::Components::DataComponentTypeCustomModelData
Definition
DataComponentTypeCustomModelData.hpp:10
ProtocolCraft::Components::DataComponentTypeCustomModelData::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DataComponentTypeCustomModelData.hpp:20
ProtocolCraft::Components::DataComponentTypeCustomModelData::SERIALIZED_FIELD
SERIALIZED_FIELD(Strings, std::vector< std::string >)
ProtocolCraft::Components::DataComponentTypeCustomModelData::SERIALIZED_FIELD
SERIALIZED_FIELD(Flags, std::vector< bool >)
ProtocolCraft::Components::DataComponentTypeCustomModelData::SERIALIZED_FIELD
SERIALIZED_FIELD(Colors, std::vector< int >)
ProtocolCraft::Components::DataComponentTypeCustomModelData::SERIALIZED_FIELD
SERIALIZED_FIELD(Floats, std::vector< float >)
ProtocolCraft::Components::DataComponentType
Definition
DataComponentType.hpp:10
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::VarType
Definition
Templates.hpp:26
protocolCraft
include
protocolCraft
Types
Components
DataComponentTypeCustomModelData.hpp
Generated by
1.9.8