aboutsummaryrefslogtreecommitdiff
path: root/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-12-11 20:24:47 +0800
committershedaniel <daniel@shedaniel.me>2020-12-11 20:24:47 +0800
commit90b8a8181eb7e642fb88832f8bd8baa3acdcf804 (patch)
tree85774b5a26be6a8303f99c5316aee320a737ffc8 /RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java
parent14edd7e3f9e3716ff60e9d918760049c1313a485 (diff)
downloadRoughlyEnoughItems-90b8a8181eb7e642fb88832f8bd8baa3acdcf804.tar.gz
RoughlyEnoughItems-90b8a8181eb7e642fb88832f8bd8baa3acdcf804.tar.bz2
RoughlyEnoughItems-90b8a8181eb7e642fb88832f8bd8baa3acdcf804.zip
Remove deprecated classes
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java')
-rw-r--r--RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java24
1 files changed, 5 insertions, 19 deletions
diff --git a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java
index 35900f2ff..254f5d3ab 100644
--- a/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java
+++ b/RoughlyEnoughItems-runtime/src/main/java/me/shedaniel/rei/impl/ClientHelperImpl.java
@@ -95,14 +95,14 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
}
@Override
- public String getModFromModId(String modid) {
- if (modid == null)
+ public String getModFromModId(String modId) {
+ if (modId == null)
return "";
- String any = modNameCache.getOrDefault(modid, null);
+ String any = modNameCache.getOrDefault(modId, null);
if (any != null)
return any;
- String s = FabricLoader.getInstance().getModContainer(modid).map(ModContainer::getMetadata).map(ModMetadata::getName).orElse(modid);
- modNameCache.put(modid, s);
+ String s = FabricLoader.getInstance().getModContainer(modId).map(ModContainer::getMetadata).map(ModMetadata::getName).orElse(modId);
+ modNameCache.put(modId, s);
return s;
}
@@ -175,11 +175,6 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
}
}
- @Override
- public List<ItemStack> getInventoryItemsTypes() {
- return Minecraft.getInstance().player.getInventory().compartments.stream().flatMap(Collection::stream).collect(Collectors.toList());
- }
-
@ApiStatus.Internal
public Set<EntryStack> _getInventoryItemsTypes() {
return Minecraft.getInstance().player.getInventory().compartments.stream()
@@ -188,15 +183,6 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
.collect(Collectors.toSet());
}
- @ApiStatus.ScheduledForRemoval
- @Deprecated
- @Override
- public void openRecipeViewingScreen(Map<RecipeCategory<?>, List<RecipeDisplay>> map) {
- openRecipeViewingScreen(map, null, null, null);
- }
-
- @ApiStatus.ScheduledForRemoval
- @Deprecated
@ApiStatus.Internal
public void openRecipeViewingScreen(Map<RecipeCategory<?>, List<RecipeDisplay>> map, @Nullable ResourceLocation category, @Nullable EntryStack ingredientNotice, @Nullable EntryStack resultNotice) {
openView(new LegacyWrapperViewSearchBuilder(map).setPreferredOpenedCategory(category).setInputNotice(ingredientNotice).setOutputNotice(resultNotice).fillPreferredOpenedCategory());