Updated scrapboxinator to crafter and new GUI.

This commit is contained in:
drcrazy 2018-01-19 18:07:21 +03:00
parent e0eb725878
commit 44b6f20357
8 changed files with 103 additions and 185 deletions

View file

@ -22,11 +22,12 @@
* SOFTWARE.
*/
package techreborn.api.recipe;
package techreborn.api.recipe.machines;
import net.minecraft.item.ItemStack;
import techreborn.api.Reference;
import techreborn.api.TechRebornAPI;
import techreborn.api.recipe.BaseRecipe;
//THIS is only here to trick JEI into showing recipes for the recycler
public class RecyclerRecipe extends BaseRecipe {

View file

@ -22,18 +22,21 @@
* SOFTWARE.
*/
package techreborn.api.recipe;
package techreborn.api.recipe.machines;
import net.minecraft.item.ItemStack;
import techreborn.api.Reference;
import techreborn.api.TechRebornAPI;
import techreborn.api.recipe.BaseRecipe;
public class ScrapboxRecipe extends BaseRecipe {
public ScrapboxRecipe(ItemStack output) {
super(Reference.scrapboxRecipe, 0, 0);
addInput(new ItemStack(TechRebornAPI.getItem("SCRAP_BOX")));
addOutput(output);
public ScrapboxRecipe(ItemStack output, int tickTime, int euPerTick) {
super(Reference.scrapboxRecipe, tickTime, euPerTick);
if (output != null) {
addInput(new ItemStack(TechRebornAPI.getItem("SCRAP_BOX")));
addOutput(output);
}
}
@Override