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 provide relevant objects instead of having to map them from identifiers yourself.

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