mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
back ShortcutHolder with generic TypeLoader
This commit is contained in:
@@ -10,15 +10,14 @@ import java.lang.reflect.AnnotatedType;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.dfsek.terra.api.registry.Registry;
|
||||
import com.dfsek.terra.api.tectonic.ShortcutLoader;
|
||||
|
||||
|
||||
public class ShortcutHolder<T> implements TypeLoader<T> {
|
||||
private final Map<String, ShortcutLoader<T>> shortcuts = new HashMap<>();
|
||||
private final Registry<T> back;
|
||||
private final TypeLoader<T> back;
|
||||
|
||||
public ShortcutHolder(Registry<T> back) {
|
||||
public ShortcutHolder(TypeLoader<T> back) {
|
||||
this.back = back;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user