aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-19 15:49:04 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-19 15:49:04 +0800
commit7d593ec3ab105a571f7ec04828557d406d3344d5 (patch)
tree38dd3bd53f7343df7f0ed61d18a5c01ee2306fde /src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
parent6ad47cbb6e26bf74b1f432f59c5779c5905297dd (diff)
downloadRoughlyEnoughItems-7d593ec3ab105a571f7ec04828557d406d3344d5.tar.gz
RoughlyEnoughItems-7d593ec3ab105a571f7ec04828557d406d3344d5.tar.bz2
RoughlyEnoughItems-7d593ec3ab105a571f7ec04828557d406d3344d5.zip
stuff
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java b/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
index 047724957..b577d88bf 100644
--- a/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
+++ b/src/main/java/me/shedaniel/rei/client/ClientHelperImpl.java
@@ -178,7 +178,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
@Override
public boolean executeRecipeKeyBind(ItemStack stack) {
- Map<RecipeCategory, List<RecipeDisplay>> map = RecipeHelper.getInstance().getRecipesFor(stack);
+ Map<RecipeCategory<?>, List<RecipeDisplay>> map = RecipeHelper.getInstance().getRecipesFor(stack);
if (map.keySet().size() > 0)
openRecipeViewingScreen(map);
return map.keySet().size() > 0;
@@ -186,7 +186,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
@Override
public boolean executeUsageKeyBind(ItemStack stack) {
- Map<RecipeCategory, List<RecipeDisplay>> map = RecipeHelper.getInstance().getUsagesFor(stack);
+ Map<RecipeCategory<?>, List<RecipeDisplay>> map = RecipeHelper.getInstance().getUsagesFor(stack);
if (map.keySet().size() > 0)
openRecipeViewingScreen(map);
return map.keySet().size() > 0;
@@ -205,7 +205,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
@Override
public boolean executeViewAllRecipesKeyBind() {
- Map<RecipeCategory, List<RecipeDisplay>> map = RecipeHelper.getInstance().getAllRecipes();
+ Map<RecipeCategory<?>, List<RecipeDisplay>> map = RecipeHelper.getInstance().getAllRecipes();
if (map.keySet().size() > 0)
openRecipeViewingScreen(map);
return map.keySet().size() > 0;
@@ -213,7 +213,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
@Override
public boolean executeViewAllRecipesFromCategory(Identifier category) {
- Map<RecipeCategory, List<RecipeDisplay>> map = Maps.newLinkedHashMap();
+ Map<RecipeCategory<?>, List<RecipeDisplay>> map = Maps.newLinkedHashMap();
Optional<RecipeCategory> any = RecipeHelper.getInstance().getAllCategories().stream().filter(c -> c.getIdentifier().equals(category)).findAny();
if (!any.isPresent())
return false;
@@ -226,7 +226,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
@Override
public boolean executeViewAllRecipesFromCategories(List<Identifier> categories) {
- Map<RecipeCategory, List<RecipeDisplay>> map = Maps.newLinkedHashMap();
+ Map<RecipeCategory<?>, List<RecipeDisplay>> map = Maps.newLinkedHashMap();
for(Identifier category : categories) {
Optional<RecipeCategory> any = RecipeHelper.getInstance().getAllCategories().stream().filter(c -> c.getIdentifier().equals(category)).findAny();
if (!any.isPresent())
@@ -240,7 +240,7 @@ public class ClientHelperImpl implements ClientHelper, ClientModInitializer {
}
@Override
- public void openRecipeViewingScreen(Map<RecipeCategory, List<RecipeDisplay>> map) {
+ public void openRecipeViewingScreen(Map<RecipeCategory<?>, List<RecipeDisplay>> map) {
if (RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType == RecipeScreenType.VILLAGER)
MinecraftClient.getInstance().openScreen(new VillagerRecipeViewingScreen(map));
else if (RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType == RecipeScreenType.UNSET)