From 3ab6f974fb63b9f9232f8507e156cfc53cdf0250 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 6 Feb 2020 11:55:23 +0800 Subject: 4.0-unstable Signed-off-by: shedaniel --- src/main/java/me/shedaniel/rei/api/RecipeHelper.java | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java') diff --git a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java index ee2243068..4e8a07f21 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -7,7 +7,7 @@ package me.shedaniel.rei.api; import me.shedaniel.math.api.Rectangle; import me.shedaniel.rei.RoughlyEnoughItemsCore; -import net.minecraft.client.gui.screen.ingame.AbstractContainerScreen; +import net.minecraft.client.gui.screen.ingame.ContainerScreen; import net.minecraft.recipe.Recipe; import net.minecraft.recipe.RecipeManager; import net.minecraft.util.Identifier; @@ -21,7 +21,6 @@ import java.util.function.Predicate; public interface RecipeHelper { - @SuppressWarnings("deprecation") static RecipeHelper getInstance() { return RoughlyEnoughItemsCore.getRecipeHelper(); } @@ -170,19 +169,6 @@ public interface RecipeHelper { */ List getDisplayVisibilityHandlers(); - /** - * Checks if the display is visible by asking recipe visibility handlers - * - * @param display the display to be checked - * @param respectConfig whether it should respect the user's config - * @return whether the display should be visible - * @deprecated {@link RecipeHelper#isDisplayVisible(RecipeDisplay)} )} - */ - @Deprecated - default boolean isDisplayVisible(RecipeDisplay display, boolean respectConfig) { - return isDisplayVisible(display); - } - boolean isDisplayNotVisible(RecipeDisplay display); /** @@ -203,7 +189,7 @@ public interface RecipeHelper { */ void registerLiveRecipeGenerator(LiveRecipeGenerator liveRecipeGenerator); - void registerScreenClickArea(Rectangle rectangle, Class> screenClass, Identifier... categories); + void registerScreenClickArea(Rectangle rectangle, Class> screenClass, Identifier... categories); > void registerRecipes(Identifier category, Class recipeClass, Function mappingFunction); @@ -215,7 +201,7 @@ public interface RecipeHelper { boolean arePluginsLoading(); interface ScreenClickArea { - Class getScreenClass(); + Class getScreenClass(); Rectangle getRectangle(); -- cgit