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.
Heads up!
There is also a method overload where you can provide a default manually that bypasses the DefaultedRegistry
restriction.
// the resulting field will directly provide items, not identifiers for itemspublic ValidatedField<Item> mapped = ValidatedRegistryType.of(Registries.ITEM);