From a98d9191f1a97925a8a3e2e23c0a07867540a93a Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 12 May 2019 18:10:15 +0800 Subject: Out of beta: Build 110 --- .../me/shedaniel/rei/api/SpeedCraftFunctional.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java') diff --git a/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java b/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java index cec75d282..6824883a3 100644 --- a/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java +++ b/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java @@ -9,10 +9,29 @@ import net.minecraft.client.gui.Screen; public interface SpeedCraftFunctional { + /** + * Gets the classes that it is functioning for + * + * @return the array of classes + */ Class[] getFunctioningFor(); + /** + * Performs the auto crafting + * + * @param screen the current screen + * @param recipe the current recipe + * @return whether it worked + */ boolean performAutoCraft(Screen screen, T recipe); + /** + * Gets if this functional accepts the auto crafting + * + * @param screen the current screen + * @param recipe the current recipe + * @return whether it is accepted + */ boolean acceptRecipe(Screen screen, T recipe); } -- cgit