mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-14 11:46:06 +00:00
remove RegistryFactory
This commit is contained in:
@@ -15,7 +15,6 @@ import java.util.Map;
|
||||
|
||||
import com.dfsek.terra.api.addon.BaseAddon;
|
||||
import com.dfsek.terra.api.registry.CheckedRegistry;
|
||||
import com.dfsek.terra.api.registry.meta.RegistryFactory;
|
||||
import com.dfsek.terra.api.registry.meta.RegistryHolder;
|
||||
import com.dfsek.terra.api.tectonic.LoaderHolder;
|
||||
import com.dfsek.terra.api.tectonic.LoaderRegistrar;
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021 Polyhedral Development
|
||||
*
|
||||
* The Terra API is licensed under the terms of the MIT License. For more details,
|
||||
* reference the LICENSE file in the common/api directory.
|
||||
*/
|
||||
|
||||
package com.dfsek.terra.api.registry.meta;
|
||||
|
||||
import com.dfsek.tectonic.api.loader.type.TypeLoader;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import com.dfsek.terra.api.registry.OpenRegistry;
|
||||
|
||||
|
||||
/**
|
||||
* Helpers to avoid creating entire registry implementations for simple overrides.
|
||||
*/
|
||||
public interface RegistryFactory {
|
||||
/**
|
||||
* Create a generic OpenRegistry.
|
||||
*
|
||||
* @param <T> Type of registry.
|
||||
*
|
||||
* @return New OpenRegistry
|
||||
*/
|
||||
<T> OpenRegistry<T> create();
|
||||
|
||||
/**
|
||||
* Create an OpenRegistry with custom {@link TypeLoader}
|
||||
*
|
||||
* @param loader Function to create loader.
|
||||
* @param <T> Type of registry.
|
||||
*
|
||||
* @return New OpenRegistry.
|
||||
*/
|
||||
<T> OpenRegistry<T> create(Function<OpenRegistry<T>, TypeLoader<T>> loader);
|
||||
}
|
||||
Reference in New Issue
Block a user