Fabric API

Fabric API

108M Downloads

FabricRegistryBuilder should have a createSimple method that does not take a class param

TelepathicGrunt opened this issue ยท 1 comments

commented

The class type param is not used at all here. Might as well make a replacement method that takes just the Identifier.

public static <T> FabricRegistryBuilder<T, SimpleRegistry<T>> createSimple(Class<T> type, Identifier registryId) {
return from(new SimpleRegistry<T>(RegistryKey.ofRegistry(registryId), Lifecycle.stable(), false));
}

commented

rip. Is duplicate of this: #846
closing