diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-05 22:14:37 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-05 22:14:37 +0800 |
| commit | 0ad3f7821fd819b43b58720de6713ed8bb8c9a8d (patch) | |
| tree | 7d95f69850beb2935856253db1d8515493717d1a /src/main/java/me/shedaniel/api | |
| parent | 927488f904dce7e8667c33d8ca85a52413d8649b (diff) | |
| download | RoughlyEnoughItems-0ad3f7821fd819b43b58720de6713ed8bb8c9a8d.tar.gz RoughlyEnoughItems-0ad3f7821fd819b43b58720de6713ed8bb8c9a8d.tar.bz2 RoughlyEnoughItems-0ad3f7821fd819b43b58720de6713ed8bb8c9a8d.zip | |
Buggy Autocrafting
Diffstat (limited to 'src/main/java/me/shedaniel/api')
| -rw-r--r-- | src/main/java/me/shedaniel/api/DisplayCategoryCraftable.java | 19 | ||||
| -rwxr-xr-x | src/main/java/me/shedaniel/api/IRecipe.java | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/api/DisplayCategoryCraftable.java b/src/main/java/me/shedaniel/api/DisplayCategoryCraftable.java new file mode 100644 index 000000000..c0be7bd11 --- /dev/null +++ b/src/main/java/me/shedaniel/api/DisplayCategoryCraftable.java @@ -0,0 +1,19 @@ +package me.shedaniel.api; + +import me.shedaniel.api.IDisplayCategory; +import me.shedaniel.api.IRecipe; +import me.shedaniel.gui.RecipeGui; +import me.shedaniel.gui.widget.Control; +import net.minecraft.client.gui.Gui; + +import java.util.List; + +public interface DisplayCategoryCraftable<T extends IRecipe> extends IDisplayCategory<T> { + + public boolean canAutoCraftHere(Class<? extends Gui> guiClass, T recipe); + + public boolean performAutoCraft(Gui gui, T recipe); + + public void registerAutoCraftButton(List<Control> control, RecipeGui recipeGui, Gui parentGui, T recipe, int number); + +} diff --git a/src/main/java/me/shedaniel/api/IRecipe.java b/src/main/java/me/shedaniel/api/IRecipe.java index 6359c351a..84cce4c79 100755 --- a/src/main/java/me/shedaniel/api/IRecipe.java +++ b/src/main/java/me/shedaniel/api/IRecipe.java @@ -12,4 +12,5 @@ public interface IRecipe<T> { public List<T> getOutput(); public List<List<T>> getInput(); + } |
