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 | 63fdcc76da7e2d7cbd79d327c6dd72404708f64f (patch) | |
| tree | 7d95f69850beb2935856253db1d8515493717d1a /src/main/java/me/shedaniel/api | |
| parent | 418ee1e13fb66ef30c9473e0069695d89967124f (diff) | |
| download | RoughlyEnoughItems-63fdcc76da7e2d7cbd79d327c6dd72404708f64f.tar.gz RoughlyEnoughItems-63fdcc76da7e2d7cbd79d327c6dd72404708f64f.tar.bz2 RoughlyEnoughItems-63fdcc76da7e2d7cbd79d327c6dd72404708f64f.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(); + } |
