diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-17 22:19:57 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-17 22:19:57 +0800 |
| commit | 943b3c0a7f68630261f0c06c60fee0b107d052cd (patch) | |
| tree | 634656ecc76abf07e3cf892a90ea86fbd692543e /src/main/java/me/shedaniel/rei/api | |
| parent | 55fb26865a7c77a098b2be067afcf29c335df48c (diff) | |
| download | RoughlyEnoughItems-2.0.0.39.tar.gz RoughlyEnoughItems-2.0.0.39.tar.bz2 RoughlyEnoughItems-2.0.0.39.zip | |
API Changev2.0.0.39
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api')
3 files changed, 29 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java b/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java index 5fa4f8d99..b14e598ee 100644 --- a/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java +++ b/src/main/java/me/shedaniel/rei/api/IRecipePlugin.java @@ -2,12 +2,16 @@ package me.shedaniel.rei.api; import me.shedaniel.rei.listeners.IListener; -public interface IRecipePlugin extends IListener { +public interface IRecipePlugin { public void registerPluginCategories(); public void registerRecipes(); - public void registerAutoCraftingGui(); + public void registerSpeedCraft(); + + default public int getPriority() { + return 0; + } } diff --git a/src/main/java/me/shedaniel/rei/api/SpeedCraftAreaSupplier.java b/src/main/java/me/shedaniel/rei/api/SpeedCraftAreaSupplier.java new file mode 100644 index 000000000..47e0a66cc --- /dev/null +++ b/src/main/java/me/shedaniel/rei/api/SpeedCraftAreaSupplier.java @@ -0,0 +1,9 @@ +package me.shedaniel.rei.api; + +import java.awt.*; + +public interface SpeedCraftAreaSupplier { + + public Rectangle get(Rectangle bounds); + +} diff --git a/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java b/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java new file mode 100644 index 000000000..6dd998d47 --- /dev/null +++ b/src/main/java/me/shedaniel/rei/api/SpeedCraftFunctional.java @@ -0,0 +1,14 @@ +package me.shedaniel.rei.api; + +import me.shedaniel.rei.plugin.DefaultCraftingDisplay; +import net.minecraft.client.gui.Gui; + +public interface SpeedCraftFunctional<T extends IRecipeDisplay> { + + public Class[] getFunctioningFor(); + + public boolean performAutoCraft(Gui gui, T recipe); + + public boolean acceptRecipe(Gui gui, T recipe); + +} |
