Added oredictionary use
This commit is contained in:
parent
590c74a5fc
commit
458a877c38
2 changed files with 103 additions and 104 deletions
|
|
@ -1,53 +1,52 @@
|
|||
package mysticores.util;
|
||||
|
||||
import mysticores.items.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class ToolRecipes {
|
||||
public static void AdvancedAxeRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "## ", "#S ", " S ", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "## ", "S# ", "S ", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
public static void AdvancedAxeRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "#S ", " S ", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S# ", "S ", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
}
|
||||
|
||||
public static void AdvancedHoeRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "## ", " S ", " S ", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "## ", "S ", "S ", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
public static void AdvancedHoeRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", " S ", " S ", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S ", "S ", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
}
|
||||
|
||||
public static void AdvancedPickaxeRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "###", " S ", " S ", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
public static void AdvancedPickaxeRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "###", " S ", " S ", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
}
|
||||
|
||||
public static void AdvancedShovelRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "#", "S", "S", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
public static void AdvancedShovelRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "S", "S", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
}
|
||||
|
||||
public static void AdvancedSwordRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ItemStack(output, 1), new Object[] { "#", "#", "S", 'S', new ItemStack(Items.Resource, 1, 13), '#', input });
|
||||
public static void AdvancedSwordRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "#", "S", 'S', OreDictManager.INGOTS[13], '#', input));
|
||||
}
|
||||
|
||||
public static void AxeRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "## ", "#S ", " S ", 'S', "stickWood", '#', input));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "## ", "S# ", "S ", 'S', "stickWood", '#', input));
|
||||
public static void AxeRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "#S ", " S ", 'S', "stickWood", '#', input));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S# ", "S ", 'S', "stickWood", '#', input));
|
||||
}
|
||||
|
||||
public static void HoeRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "## ", " S ", " S ", 'S', "stickWood", '#', input));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "## ", "S ", "S ", 'S', "stickWood", '#', input));
|
||||
public static void HoeRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", " S ", " S ", 'S', "stickWood", '#', input));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "## ", "S ", "S ", 'S', "stickWood", '#', input));
|
||||
}
|
||||
|
||||
public static void PickaxeRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "###", " S ", " S ", 'S', "stickWood", '#', input));
|
||||
public static void PickaxeRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "###", " S ", " S ", 'S', "stickWood", '#', input));
|
||||
}
|
||||
|
||||
public static void ShovelRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "#", "S", "S", 'S', "stickWood", '#', input));
|
||||
public static void ShovelRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "S", "S", 'S', "stickWood", '#', input));
|
||||
}
|
||||
|
||||
public static void SwordRecipe(Item output, ItemStack input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output, 1), "#", "#", "S", 'S', "stickWood", '#', input));
|
||||
public static void SwordRecipe(Item output, Object input) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(output), "#", "#", "S", 'S', "stickWood", '#', input));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue