diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-06-18 19:39:43 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-06-18 19:39:43 +0800 |
| commit | 6e20fcb8c5a13d2145d8960a00b03507823c8d4d (patch) | |
| tree | ea7188c9e8136e3778ba938d93515559ad423bbf /src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java | |
| parent | 332747a3332eec2f2bff5696f79ef1e38161aa75 (diff) | |
| download | RoughlyEnoughItems-6e20fcb8c5a13d2145d8960a00b03507823c8d4d.tar.gz RoughlyEnoughItems-6e20fcb8c5a13d2145d8960a00b03507823c8d4d.tar.bz2 RoughlyEnoughItems-6e20fcb8c5a13d2145d8960a00b03507823c8d4d.zip | |
auto crafting... still using vanilla recipe book, can't figure how
Diffstat (limited to 'src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java index 25f29d7da..5db09d727 100644 --- a/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java +++ b/src/main/java/me/shedaniel/rei/client/RecipeHelperImpl.java @@ -9,11 +9,7 @@ import com.google.common.collect.Lists; import com.google.common.collect.Maps; import me.shedaniel.rei.RoughlyEnoughItemsCore; import me.shedaniel.rei.api.*; -import me.shedaniel.rei.gui.ContainerScreenOverlay; import me.shedaniel.rei.gui.config.DisplayVisibility; -import net.minecraft.client.MinecraftClient; -import net.minecraft.client.gui.screen.Screen; -import net.minecraft.client.gui.screen.ingame.AbstractContainerScreen; import net.minecraft.item.ItemStack; import net.minecraft.recipe.Recipe; import net.minecraft.recipe.RecipeManager; @@ -280,20 +276,6 @@ public class RecipeHelperImpl implements RecipeHelper { return -1f; } }); - registerAutoCraftingHandler(new AutoCraftingHandler() { - @Override - public double getPriority() { - return -Double.MAX_VALUE; - } - - @Override - public boolean handle(MinecraftClient minecraft, Screen recipeViewingScreen, AbstractContainerScreen<?> parentScreen, ContainerScreenOverlay overlay) { - minecraft.openScreen(parentScreen); - ScreenHelper.getLastOverlay().init(); - return true; - } - }); - // Clear Cache ((DisplayHelperImpl) RoughlyEnoughItemsCore.getDisplayHelper()).resetCache(); this.categoryDisplaySettingsMap.clear(); @@ -339,6 +321,11 @@ public class RecipeHelperImpl implements RecipeHelper { } @Override + public List<RecipeDisplay> getAllRecipesFromCategory(RecipeCategory category) { + return recipeCategoryListMap.get(category.getIdentifier()); + } + + @Override public void registerRecipeVisibilityHandler(DisplayVisibilityHandler visibilityHandler) { displayVisibilityHandlers.add(visibilityHandler); } |
