29 SetFlags(BackgroundTexture_.has_value() ? (GetFlags() | 0x01) : (GetFlags() & ~0x01));
30 BackgroundTexture = BackgroundTexture_;
auto & SetBackgroundTexture(const std::optional< Identifier > &BackgroundTexture_)
SERIALIZED_FIELD(Icon, Slot)
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)
DEFINE_CONDITION(HasBackgroundTexture, GetFlags() &0x01)
SERIALIZED_FIELD(Description, Chat)
A type wrapper to conditionally serialize a type.