Fzzy Config

Validated Registry Objects

ValidatedRegistryType provides a simple way to create validation for registered object types, as long as the registry is defaulted. This lets your config directly provide the relevant objects instead of having to later map them from identifiers yourself.

// the resulting field will directly provide items, not identifiers for items
public ValidatedField<Item> mapped = ValidatedRegistryType.of(Registries.ITEM);