Botcraft
26.2
Loading...
Searching...
No Matches
PartialDataComponentPredicate.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 769
/* > 1.21.4 */
2
#pragma once
3
#include "
protocolCraft/NetworkType.hpp
"
4
#include "
protocolCraft/Types/Either.hpp
"
5
#include "
protocolCraft/Types/NBT/NBT.hpp
"
6
7
8
namespace
ProtocolCraft
9
{
10
namespace
Components
11
{
12
class
PartialDataComponentPredicate
:
public
NetworkType
13
{
14
SERIALIZED_FIELD
(Type,
Either<VarInt, VarInt>
);
// either a DATA_COMPONENT_PREDICATE_TYPE or a DATA_COMPONENT_TYPE but we need to read the either boolean
15
SERIALIZED_FIELD
(Value,
NBT::UnnamedValue
);
16
17
DECLARE_READ_WRITE_SERIALIZE
;
18
};
19
}
20
}
21
#endif
Either.hpp
NBT.hpp
NetworkType.hpp
ProtocolCraft::Components::PartialDataComponentPredicate
Definition
PartialDataComponentPredicate.hpp:13
ProtocolCraft::Components::PartialDataComponentPredicate::SERIALIZED_FIELD
SERIALIZED_FIELD(Value, NBT::UnnamedValue)
ProtocolCraft::Components::PartialDataComponentPredicate::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
PartialDataComponentPredicate.hpp:17
ProtocolCraft::Components::PartialDataComponentPredicate::SERIALIZED_FIELD
SERIALIZED_FIELD(Type, Either< VarInt, VarInt >)
ProtocolCraft::Either
Definition
Either.hpp:11
ProtocolCraft::NBT::UnnamedValue
Definition
NBT.hpp:12
ProtocolCraft::NetworkType
Definition
NetworkType.hpp:11
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Components
Subtypes
PartialDataComponentPredicate.hpp
Generated by
1.9.8