I was recently working with catalog types, and TextColors (and saving them to a config), and I found that sometimes a TextColor (from a Text object) can have the id of “NONE” however, when I query the GameRegistry for a TextColor with the id of “NONE” it returns an empty optional. The problem I have with this is that I am working with multiple different CatalogTypes, and cannot simply created a special case for this single “NONE” value. Is there some way around this? And moreover, how would I request that every CatalogType with a “NONE” id actually be accessible through the query of the registry?
I’ll add the ability to query for “none” in the registry
registry.getType(TextColor.class, "NONE") ---> TextColors.NONE
registry.getType(TextStyles.class, "NONE") ---> TextStyles.NONE
Thanks for that,