5#if PROTOCOL_VERSION < 775
20#if PROTOCOL_VERSION < 775
37 SetFlags(BackgroundTexture_.has_value() ? (GetFlags() | 0x01) : (GetFlags() & ~0x01));
38 BackgroundTexture = BackgroundTexture_;
#define SERIALIZED_FIELD(Name,...)
auto & SetBackgroundTexture(const std::optional< Identifier > &BackgroundTexture_)
SERIALIZED_FIELD(Title, Chat)
SERIALIZED_FIELD(FrameType, VarInt)
DECLARE_READ_WRITE_SERIALIZE
SERIALIZED_FIELD(XCoord, float)
SERIALIZED_FIELD_WITHOUT_GETTER_SETTER(BackgroundTexture, Internal::Conditioned< Identifier, &AdvancementDisplay::HasBackgroundTexture >)
GETTER(BackgroundTexture)
SERIALIZED_FIELD(YCoord, float)
SERIALIZED_FIELD(Flags, int)
SERIALIZED_FIELD(Icon, ItemStackTemplate)
DEFINE_CONDITION(HasBackgroundTexture, GetFlags() &0x01)
SERIALIZED_FIELD(Description, Chat)
A type wrapper to conditionally serialize a type.