From 4710c557f449703362665a520bf68b85b2a7cdc1 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 8 Jun 2019 20:30:53 +0800 Subject: We are going to break lots of mods --- .../java/me/shedaniel/rei/api/RecipeHelper.java | 25 ++++++++-------------- 1 file changed, 9 insertions(+), 16 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 ca0202d1f..19d411cfd 100644 --- a/src/main/java/me/shedaniel/rei/api/RecipeHelper.java +++ b/src/main/java/me/shedaniel/rei/api/RecipeHelper.java @@ -126,27 +126,20 @@ public interface RecipeHelper { void registerSpeedCraftButtonArea(Identifier category, ButtonAreaSupplier rectangle); /** - * @param category the category of the button area - * @deprecated Not required anymore - */ - @Deprecated - void registerDefaultSpeedCraftButtonArea(Identifier category); - - /** - * Gets the speed crafting functional from a category + * Removes the speed crafting button * - * @param category the category of the speed crafting functional - * @return the list of speed crafting functionals + * @param category the category of the button */ - List getSpeedCraftFunctional(RecipeCategory category); + default void removeSpeedCraftButton(Identifier category) { + registerSpeedCraftButtonArea(category, bounds -> null); + } /** - * Registers a speed crafting functional - * - * @param category the category of the speed crafting functional - * @param functional the functional to be registered + * @param category the category of the button area + * @deprecated Not required anymore */ - void registerSpeedCraftFunctional(Identifier category, SpeedCraftFunctional functional); + @Deprecated + void registerDefaultSpeedCraftButtonArea(Identifier category); /** * Gets the map of all recipes visible to the player -- cgit