aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-02-06 11:55:23 +0800
committershedaniel <daniel@shedaniel.me>2020-02-06 11:55:23 +0800
commit3ab6f974fb63b9f9232f8507e156cfc53cdf0250 (patch)
treef6625574308f0e5fd6e3e8f0120919ca4de4a0b1 /src/main/java/me/shedaniel/rei/api/RecipeHelper.java
parent129d287ddad825878af3b447f144ab38ccd1acf6 (diff)
downloadRoughlyEnoughItems-3ab6f974fb63b9f9232f8507e156cfc53cdf0250.tar.gz
RoughlyEnoughItems-3ab6f974fb63b9f9232f8507e156cfc53cdf0250.tar.bz2
RoughlyEnoughItems-3ab6f974fb63b9f9232f8507e156cfc53cdf0250.zip
4.0-unstable
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RecipeHelper.java20
1 files changed, 3 insertions, 17 deletions
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<DisplayVisibilityHandler> 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<? extends AbstractContainerScreen<?>> screenClass, Identifier... categories);
+ void registerScreenClickArea(Rectangle rectangle, Class<? extends ContainerScreen<?>> screenClass, Identifier... categories);
<T extends Recipe<?>> void registerRecipes(Identifier category, Class<T> recipeClass, Function<T, RecipeDisplay> mappingFunction);
@@ -215,7 +201,7 @@ public interface RecipeHelper {
boolean arePluginsLoading();
interface ScreenClickArea {
- Class<? extends AbstractContainerScreen> getScreenClass();
+ Class<? extends ContainerScreen> getScreenClass();
Rectangle getRectangle();