aboutsummaryrefslogtreecommitdiff
path: root/api/src/main/java/me/shedaniel/rei/impl/Internals.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-06-03 14:47:25 +0800
committershedaniel <daniel@shedaniel.me>2021-06-03 14:47:25 +0800
commite9c230bfcd93b3bb6191a668891d99c1f241e5be (patch)
tree9971f31b42a1eb6a03067030a3f70b844cc49a0b /api/src/main/java/me/shedaniel/rei/impl/Internals.java
parent572ebd36c32c0248f2c826cc518eeedbc0701287 (diff)
downloadRoughlyEnoughItems-e9c230bfcd93b3bb6191a668891d99c1f241e5be.tar.gz
RoughlyEnoughItems-e9c230bfcd93b3bb6191a668891d99c1f241e5be.tar.bz2
RoughlyEnoughItems-e9c230bfcd93b3bb6191a668891d99c1f241e5be.zip
Use Java 16 features
Diffstat (limited to 'api/src/main/java/me/shedaniel/rei/impl/Internals.java')
-rw-r--r--api/src/main/java/me/shedaniel/rei/impl/Internals.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/impl/Internals.java b/api/src/main/java/me/shedaniel/rei/impl/Internals.java
index 90e4a03e7..a5912535e 100644
--- a/api/src/main/java/me/shedaniel/rei/impl/Internals.java
+++ b/api/src/main/java/me/shedaniel/rei/impl/Internals.java
@@ -50,7 +50,7 @@ public final class Internals {
private static Supplier<PluginManager<REIPlugin<?>>> commonPluginManager = Internals::throwNotSetup;
private static Supplier<PluginManager<REIServerPlugin>> serverPluginManager = Internals::throwNotSetup;
private static Supplier<NbtHasherProvider> nbtHasherProvider = Internals::throwNotSetup;
- private static Function<ResourceLocation, CategoryIdentifier<?>> categoryIdentifier = (object) -> throwNotSetup();
+ private static Function<String, CategoryIdentifier<?>> categoryIdentifier = (object) -> throwNotSetup();
private static <T> T throwNotSetup() {
throw new AssertionError("REI Internals have not been initialized!");
@@ -105,7 +105,7 @@ public final class Internals {
return nbtHasherProvider.get().provide(ignoredKeys);
}
- public static <T extends Display> CategoryIdentifier<T> getCategoryIdentifier(ResourceLocation location) {
+ public static <T extends Display> CategoryIdentifier<T> getCategoryIdentifier(String location) {
return (CategoryIdentifier<T>) categoryIdentifier.apply(location);
}