TechReborn/src/main/java/techreborn/util/CraftingHelper.java

25 lines
680 B
Java
Raw Normal View History

2015-04-12 17:43:51 +02:00
package techreborn.util;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraftforge.oredict.ShapedOreRecipe;
import net.minecraftforge.oredict.ShapelessOreRecipe;
public class CraftingHelper {
2015-04-24 15:20:09 +02:00
public static void addShapedOreRecipe(ItemStack outputItemStack,
Object... objectInputs)
{
CraftingManager.getInstance().getRecipeList()
.add(new ShapedOreRecipe(outputItemStack, objectInputs));
}
2015-04-15 17:23:12 +02:00
2015-04-24 15:20:09 +02:00
public static void addShapelessOreRecipe(ItemStack outputItemStack,
Object... objectInputs)
{
CraftingManager.getInstance().getRecipeList()
.add(new ShapelessOreRecipe(outputItemStack, objectInputs));
}
2015-04-12 17:43:51 +02:00
}