This commit is contained in:
Modmuss50 2015-11-11 15:54:19 +00:00
parent e4760e559b
commit f4a3e87ebb
3 changed files with 26 additions and 3 deletions

View file

@ -8,6 +8,8 @@ import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraft.item.crafting.ShapelessRecipes;
import net.minecraft.world.World;
import net.minecraftforge.oredict.ShapedOreRecipe;
import net.minecraftforge.oredict.ShapelessOreRecipe;
import java.util.ArrayList;
import java.util.HashMap;
@ -19,6 +21,17 @@ public class RollingMachineRecipe {
public static final RollingMachineRecipe instance = new RollingMachineRecipe();
public void addShapedOreRecipe(ItemStack outputItemStack,
Object... objectInputs) {
recipes.add(new ShapedOreRecipe(outputItemStack, objectInputs));
}
public void addShapelessOreRecipe(ItemStack outputItemStack,
Object... objectInputs) {
recipes
.add(new ShapelessOreRecipe(outputItemStack, objectInputs));
}
public void addRecipe(ItemStack output, Object... components) {
String s = "";
int i = 0;

View file

@ -4,6 +4,16 @@ import net.minecraft.item.ItemStack;
public final class TechRebornAPI {
public static void addRollingOreMachinceRecipe(ItemStack output,
Object... components) {
RollingMachineRecipe.instance.addShapedOreRecipe(output, components);
}
public static void addShapelessOreRollingMachinceRecipe(ItemStack output,
Object... components) {
RollingMachineRecipe.instance.addShapelessOreRecipe(output, components);
}
public static void addRollingMachinceRecipe(ItemStack output,
Object... components) {
RollingMachineRecipe.instance.addRecipe(output, components);

View file

@ -318,10 +318,10 @@ public class
'L', "blockLapis",
'C', "circuitBasic");
TechRebornAPI.addRollingMachinceRecipe(ItemParts.getPartByName("cupronickelHeatingCoil"),
TechRebornAPI.addRollingOreMachinceRecipe(ItemParts.getPartByName("cupronickelHeatingCoil"),
"NCN", "C C", "NCN",
'N', ItemIngots.getIngotByName("cupronickel"),
'C', ItemIngots.getIngotByName("copper"));
'N', "ingotCupronickel",
'C', "ingotCopper");
}