I propose adding a getEntries() method to the DeferredRegister class. This method would allow retrieving all entries from the DeferredRegister at once instead of calling each one individually.
Add the following method to the DeferredRegister class:
public Collection<RegistrySupplier<T>> getEntries() {
return entryView;
}
With this method, it would be possible to streamline operations in datagen, for example:
I propose adding a
getEntries()
method to theDeferredRegister
class. This method would allow retrieving all entries from theDeferredRegister
at once instead of calling each one individually.Add the following method to the
DeferredRegister
class:With this method, it would be possible to streamline operations in datagen, for example:
Without this method, each entry must be written individually, as shown here:
I have tested this implementation and it works as intended.