aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RecipeHelper.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-08 20:30:53 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-08 20:30:53 +0800
commit4710c557f449703362665a520bf68b85b2a7cdc1 (patch)
treeed9555c626be11c7bc0d230d2b905856269bd916 /src/main/java/me/shedaniel/rei/api/RecipeHelper.java
parent28adfa726bcdb27eea4ffa39962c881d5c3d929b (diff)
downloadRoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.tar.gz
RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.tar.bz2
RoughlyEnoughItems-4710c557f449703362665a520bf68b85b2a7cdc1.zip
We are going to break lots of mods
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RecipeHelper.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RecipeHelper.java25
1 files changed, 9 insertions, 16 deletions
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<SpeedCraftFunctional> 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