mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-12 18:56:04 +00:00
structure configtype impl
This commit is contained in:
@@ -15,7 +15,9 @@ import com.dfsek.terra.api.util.reflection.TypeKey;
|
||||
|
||||
|
||||
public interface ConfigType<T extends AbstractableTemplate, R> {
|
||||
Supplier<OpenRegistry<R>> registrySupplier(ConfigPack pack);
|
||||
default Supplier<OpenRegistry<R>> registrySupplier(ConfigPack pack) {
|
||||
return pack.getRegistryFactory()::create;
|
||||
}
|
||||
|
||||
T getTemplate(ConfigPack pack, Platform platform);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user