1#if PROTOCOL_VERSION > 765
22#if PROTOCOL_VERSION > 773
26#if PROTOCOL_VERSION > 773
31#if PROTOCOL_VERSION > 767
41#if PROTOCOL_VERSION < 770
42 HideAdditionalTooltip,
52#if PROTOCOL_VERSION < 768
55#if PROTOCOL_VERSION > 767
62#if PROTOCOL_VERSION > 769
65#if PROTOCOL_VERSION > 773
68#if PROTOCOL_VERSION > 767
76#if PROTOCOL_VERSION > 769
79#if PROTOCOL_VERSION > 773
83#if PROTOCOL_VERSION > 773 && PROTOCOL_VERSION < 777
86#if PROTOCOL_VERSION > 776
90#if PROTOCOL_VERSION > 774
93#if PROTOCOL_VERSION > 776
98#if PROTOCOL_VERSION > 774
102#if PROTOCOL_VERSION < 777
111#if PROTOCOL_VERSION > 769
123#if PROTOCOL_VERSION > 769
127#if PROTOCOL_VERSION > 766
130#if PROTOCOL_VERSION > 769
145#if PROTOCOL_VERSION > 775
150#if PROTOCOL_VERSION > 769
152#if PROTOCOL_VERSION > 776
171#if PROTOCOL_VERSION > 774
175#if PROTOCOL_VERSION > 774
179#if PROTOCOL_VERSION > 774
182#if PROTOCOL_VERSION > 773
191#if PROTOCOL_VERSION > 774
198#if PROTOCOL_VERSION > 776
210 class DataComponentType;
217 const std::map<DataComponentTypes, std::shared_ptr<DataComponentType>>&
GetMap()
const;
226 std::map<DataComponentTypes, std::shared_ptr<DataComponentType>>
map;
230#if PROTOCOL_VERSION > 769
238#if PROTOCOL_VERSION > 769
243 const std::map<DataComponentTypes, std::shared_ptr<DataComponentType>>&
GetMap()
const;
252 std::map<DataComponentTypes, std::shared_ptr<DataComponentType>>
map;
256#if PROTOCOL_VERSION > 769
275 const std::map<DataComponentTypes, std::shared_ptr<DataComponentType>>&
GetMap()
const;
284 std::map<DataComponentTypes, std::shared_ptr<DataComponentType>>
map;
virtual Json::Value SerializeImpl() const override
std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > map
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & GetMap() const
DataComponentPatch()=default
virtual void ReadImpl(ReadIterator &iter, size_t &length) override
virtual ~DataComponentPatch() override
DataComponentPatch & SetMap(const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &map_)
virtual void WriteImpl(WriteContainer &container) const override
virtual ~DataComponentPredicate() override
virtual void WriteImpl(WriteContainer &container) const override
std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > map
virtual Json::Value SerializeImpl() const override
virtual void ReadImpl(ReadIterator &iter, size_t &length) override
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & GetMap() const
DataComponentPredicate & SetMap(const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &map_)
SERIALIZED_FIELD(AddedComponents, Internal::DiffType< std::map< DataComponentTypes, int >, std::map< VarInt, int > >)
DECLARE_READ_WRITE_SERIALIZE
HashedDataComponentPatch()=default
SERIALIZED_FIELD(RemovedComponents, Internal::DiffType< std::vector< DataComponentTypes >, std::vector< VarInt > >)
virtual void ReadImpl(ReadIterator &iter, size_t &length) override
std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > map
const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > & GetMap() const
virtual void WriteImpl(WriteContainer &container) const override
LengthPrefixedDataComponentPatch & SetMap(const std::map< DataComponentTypes, std::shared_ptr< DataComponentType > > &map_)
LengthPrefixedDataComponentPatch()=default
virtual Json::Value SerializeImpl() const override
Main class, basically a JsonVariant with extra utility functions it doesn't inherit JsonVariant direc...
std::string_view DataComponentTypesToString(const DataComponentTypes type)
@ EnchantmentGlintOverride
@ NUM_DATA_COMPONENT_TYPES
@ TropicalFish_PatternColor
std::vector< unsigned char > WriteContainer
std::vector< unsigned char >::const_iterator ReadIterator
Just a simple type wrapper that will store with T1 and serialize as T2 (can be used for Enum/VarInt f...