Botcraft
26.1.2
Loading...
Searching...
No Matches
OnlyWithComponentSlotDisplay.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 774
/* > 1.21.11 */
2
#pragma once
3
4
#include "
protocolCraft/Types/Recipes/SlotDisplayData.hpp
"
5
#include "
protocolCraft/Types/Recipes/SlotDisplay.hpp
"
6
#include "
protocolCraft/Types/Components/DataComponents.hpp
"
7
8
namespace
ProtocolCraft
9
{
10
class
OnlyWithComponentSlotDisplay
:
public
SlotDisplayData
11
{
12
SERIALIZED_FIELD
(Source,
SlotDisplay
);
13
SERIALIZED_FIELD
(
Component
,
Internal::DiffType<Components::DataComponentTypes, VarInt>
);
14
15
DECLARE_READ_WRITE_SERIALIZE
;
16
};
17
}
18
#endif
DataComponents.hpp
SlotDisplayData.hpp
SlotDisplay.hpp
ProtocolCraft::OnlyWithComponentSlotDisplay
Definition
OnlyWithComponentSlotDisplay.hpp:11
ProtocolCraft::OnlyWithComponentSlotDisplay::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
OnlyWithComponentSlotDisplay.hpp:15
ProtocolCraft::OnlyWithComponentSlotDisplay::SERIALIZED_FIELD
SERIALIZED_FIELD(Component, Internal::DiffType< Components::DataComponentTypes, VarInt >)
ProtocolCraft::OnlyWithComponentSlotDisplay::SERIALIZED_FIELD
SERIALIZED_FIELD(Source, SlotDisplay)
ProtocolCraft::SlotDisplayData
Definition
SlotDisplayData.hpp:9
ProtocolCraft::SlotDisplay
Definition
SlotDisplay.hpp:34
ProtocolCraft
Definition
ItemUtilities.hpp:8
ProtocolCraft::BrigadierPropertyType::Component
@ Component
ProtocolCraft::Internal::DiffType
Just a simple type wrapper that will store with T1 and serialize as T2 (can be used for Enum/VarInt f...
Definition
Templates.hpp:72
protocolCraft
include
protocolCraft
Types
Recipes
OnlyWithComponentSlotDisplay.hpp
Generated by
1.9.8