当前位置: 首页>>代码示例>>Java>>正文


Java AnvilRecipe类代码示例

本文整理汇总了Java中com.bioxx.tfc.api.Crafting.AnvilRecipe的典型用法代码示例。如果您正苦于以下问题:Java AnvilRecipe类的具体用法?Java AnvilRecipe怎么用?Java AnvilRecipe使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AnvilRecipe类属于com.bioxx.tfc.api.Crafting包,在下文中一共展示了AnvilRecipe类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: undo

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
@Override
public void undo() 
{			
	List<AnvilRecipe> AnvilList = AnvilManager.getInstance().getRecipeList();
	
	if(AnvilRecipeHandler.world != null)
	{
		AnvilManager.world = AnvilRecipeHandler.world;
		for (int i = 0; i < AnvilList.size(); i++)
		{
			if (AnvilList.get(i) != null)
			{
				if(input2 != null)
				{
					if (AnvilList.get(i).matches(new AnvilRecipe(input1, input2, plan, anvilReq, result)))
						AnvilList.remove(i--);
				}
				else
					if (AnvilList.get(i).matches(new AnvilRecipe(input1, null, plan, anvilReq, result)))
						AnvilList.remove(i--);
			}
		}
	}
}
 
开发者ID:StrayWolfe,项目名称:TFC-Tweaker,代码行数:25,代码来源:Anvil.java

示例2: apply

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
@Override
public void apply() 
{	
	if(AnvilRecipeHandler.world != null)
	{
		AnvilManager.world = AnvilRecipeHandler.world;
		List<AnvilRecipe> AnvilList = AnvilManager.getInstance().getRecipeList();
		for (int i = 0; i < AnvilList.size(); i++)
		{
			if (AnvilList.get(i) != null)
			{
				if(input2 != null)
				{
					if(AnvilList.get(i).matches(new AnvilRecipe(input1, input2, plan, anvilReq, result)))
						AnvilList.remove(i--);
				}
				else
					if(AnvilList.get(i).matches(new AnvilRecipe(input1, null, plan, anvilReq, result)))
						AnvilList.remove(i--);
			}
		}
	}
}
 
开发者ID:StrayWolfe,项目名称:TFC-Tweaker,代码行数:24,代码来源:Anvil.java

示例3: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public static void registerAnvilRecipes(World world)
{
    if(!DecorationsMod.isLanternsEnabled)
        return;
    
    AnvilManager manager = AnvilManager.getInstance();
    //We need to set the world ref so that all anvil recipes can generate correctly
    AnvilManager.world = world;
    
    manager.addPlan(_lanternCorePlan, new PlanRecipe(new RuleEnum[] { RuleEnum.HITLAST, RuleEnum.PUNCHNOTLAST, RuleEnum.HITNOTLAST }));
    
    for(int i = 0; i < Constants.Lanterns.length; i++)
    {
        LanternInfo info = Constants.Lanterns[i];
        Item sheetItem = GameRegistry.findItem("terrafirmacraft", info.SheetName);            
        ItemStack lanternCore = new ItemStack(ItemList.LanternCores[i], 1, 0);

        manager.addRecipe(new AnvilRecipe(new ItemStack(sheetItem), null, _lanternCorePlan, false, info.Anvil, lanternCore).addRecipeSkill(Global.SKILL_GENERAL_SMITHING));
    }
}
 
开发者ID:Aleksey-Terzi,项目名称:DecorationsTFC,代码行数:21,代码来源:Recipes.java

示例4: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public static void registerAnvilRecipes() {
	String iceSawPlan = "icesaw";
	
	Map map = AnvilManager.getInstance().getPlans();
	if(map.containsKey(iceSawPlan)) {
		return;
	}
	
	if(AnvilManager.world == null) {
		return;
	}
	
	AnvilManager manager = AnvilManager.getInstance();
	manager.addPlan(iceSawPlan, new PlanRecipe(new RuleEnum[]{RuleEnum.HITLAST, RuleEnum.UPSETSECONDFROMLAST, RuleEnum.DRAWNOTLAST}));
	
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bismuthBronzeIngot2x), null, iceSawPlan, false, AnvilReq.BISMUTHBRONZE, new ItemStack(BismuthBronzeIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackBronzeIngot2x), null, iceSawPlan, false, AnvilReq.BLACKBRONZE, new ItemStack(BlackBronzeIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackSteelIngot2x), null, iceSawPlan, false, AnvilReq.BLACKSTEEL, new ItemStack(BlackSteelIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blueSteelIngot2x), null, iceSawPlan, false, AnvilReq.BLUESTEEL, new ItemStack(BlueSteelIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bronzeIngot2x), null, iceSawPlan, false, AnvilReq.BRONZE, new ItemStack(BronzeIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.copperIngot2x), null, iceSawPlan, false, AnvilReq.COPPER, new ItemStack(CopperIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot2x), null, iceSawPlan, false, AnvilReq.WROUGHTIRON, new ItemStack(WroughtIronIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.redSteelIngot2x), null, iceSawPlan, false, AnvilReq.REDSTEEL, new ItemStack(RedSteelIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	manager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelIngot2x), null, iceSawPlan, false, AnvilReq.STEEL, new ItemStack(SteelIceSawHead, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
}
 
开发者ID:Sladki,项目名称:TFC-Cellars-Addon,代码行数:26,代码来源:ModManager.java

示例5: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public static void registerAnvilRecipes(AnvilManager anvilManager) {
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.zincIngot2x), null, "frame", AnvilReq.STONE, new ItemStack(ModItems.pipeFrameZinc, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.leadIngot2x), null, "frame", AnvilReq.COPPER, new ItemStack(ModItems.pipeFrameLead, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blueSteelIngot2x), null, "frame", AnvilReq.BLUESTEEL, new ItemStack(ModItems.pipeFrameBlueSteel, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.redSteelIngot2x), null, "frame", AnvilReq.REDSTEEL, new ItemStack(ModItems.pipeFrameRedSteel, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.electrumIngot2x), null, "frame", AnvilReq.BRONZE, new ItemStack(ModItems.pipeFrameElectrum, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot2x), null, "frame", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.pipeFrameWroughtIron, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelIngot2x), null, "frame", AnvilReq.STEEL, new ItemStack(ModItems.pipeFrameSteel, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackSteelIngot2x), null, "frame", AnvilReq.BLACKSTEEL, new ItemStack(ModItems.pipeFrameBlackSteel, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.sterlingSilverIngot2x), null, "frame", AnvilReq.BRONZE, new ItemStack(ModItems.pipeFrameSterlingSilver, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.silverIngot2x), null, "frame", AnvilReq.COPPER, new ItemStack(ModItems.pipeFrameSilver, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bronzeIngot2x), null, "frame", AnvilReq.BRONZE, new ItemStack(ModItems.pipeFrameBronze, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.copperIngot2x), null, "frame", AnvilReq.COPPER, new ItemStack(ModItems.pipeFrameCopper, 1)));
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:15,代码来源:TFCTechBCTransport.java

示例6: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public static void registerAnvilRecipes()
{
    AnvilManager manager = AnvilManager.getInstance();
    
    manager.addPlan(LanternShellPlan, new PlanRecipe(new RuleEnum[] { RuleEnum.HITLAST, RuleEnum.PUNCHANY, RuleEnum.HITANY }));
    
    for(int i = 0; i < Constants.Lanterns.length; i++)
    {
        LanternInfo info = Constants.Lanterns[i];
        Item sheetItem = GameRegistry.findItem("terrafirmacraft", info.SheetName);            
        ItemStack lanternShell = new ItemStack(ItemList.LanternShells[i], 1, 0);

        manager.addRecipe(new AnvilRecipe(new ItemStack(sheetItem), null, LanternShellPlan, false, info.Anvil, lanternShell).addRecipeSkill(Global.SKILL_GENERAL_SMITHING));
    }
}
 
开发者ID:Aleksey-Terzi,项目名称:LanternsTFC,代码行数:16,代码来源:Recipes.java

示例7: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public static void registerAnvilRecipes(AnvilManager anvilManager) {
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.invarIngot2x), null, "wrench", AnvilReq.BRONZE, new ItemStack(BuildCraftCore.wrenchItem, 1)));
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:4,代码来源:TFCTechBCCore.java

示例8: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
private static void registerAnvilRecipes(AnvilManager anvilManager) {
	// Double ingots welding recipes
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.aluminumIngot), new ItemStack(ModItems.aluminumIngot), AnvilReq.STONE, new ItemStack(
			ModItems.aluminumIngot2x, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.electrumIngot), new ItemStack(ModItems.electrumIngot), AnvilReq.COPPER,
			new ItemStack(ModItems.electrumIngot2x, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.constantanIngot), new ItemStack(ModItems.constantanIngot), AnvilReq.WROUGHTIRON,
			new ItemStack(ModItems.constantanIngot2x, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.invarIngot), new ItemStack(ModItems.invarIngot), AnvilReq.WROUGHTIRON, new ItemStack(
			ModItems.invarIngot2x, 1)));
	
	// Gears welding recipes
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.bismuthBronzeRackwheel), new ItemStack(ModItems.tinSleeve), AnvilReq.COPPER,
			new ItemStack(ModItems.bismuthBronzeGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.blackBronzeRackwheel), new ItemStack(ModItems.tinSleeve), AnvilReq.COPPER,
			new ItemStack(ModItems.blackBronzeGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.blueSteelRackwheel), new ItemStack(ModItems.steelSleeve), AnvilReq.BLACKSTEEL,
			new ItemStack(ModItems.blueSteelGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.brassRackwheel), new ItemStack(ModItems.tinSleeve), AnvilReq.COPPER, new ItemStack(
			ModItems.brassGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.bronzeRackwheel), new ItemStack(ModItems.tinSleeve), AnvilReq.COPPER, new ItemStack(
			ModItems.bronzeGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.copperRackwheel), new ItemStack(ModItems.tinSleeve), AnvilReq.STONE, new ItemStack(
			ModItems.copperGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.goldRackwheel), new ItemStack(ModItems.brassSleeve), AnvilReq.COPPER, new ItemStack(
			ModItems.goldGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.wroughtIronRackwheel), new ItemStack(ModItems.brassSleeve), AnvilReq.BRONZE,
			new ItemStack(ModItems.wroughtIronGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.steelRackwheel), new ItemStack(ModItems.brassSleeve), AnvilReq.WROUGHTIRON,
			new ItemStack(ModItems.steelGear, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.tinRackwheel), new ItemStack(ModItems.tinSleeve), AnvilReq.STONE, new ItemStack(
			ModItems.tinGear, 1)));
	
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot), null, "mount", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.mount, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.ironStripe), null, "groove", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.groove, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronSheet), null, "dixie", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.dixie, 1)));
	
	// Sheets
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.aluminumIngot2x), null, "sheet", AnvilReq.COPPER,
			new ItemStack(ModItems.aluminumSheet, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.electrumIngot2x), null, "sheet", AnvilReq.COPPER,
			new ItemStack(ModItems.electrumSheet, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.constantanIngot2x), null, "sheet", AnvilReq.WROUGHTIRON, new ItemStack(
			ModItems.constantanSheet, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.invarIngot2x), null, "sheet", AnvilReq.STEEL, new ItemStack(ModItems.invarSheet, 1)));
	
	// Double Sheets welding recipes
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.aluminumSheet), new ItemStack(ModItems.aluminumSheet), AnvilReq.COPPER,
			new ItemStack(ModItems.aluminumSheet2x, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.electrumSheet), new ItemStack(ModItems.electrumSheet), AnvilReq.COPPER,
			new ItemStack(ModItems.electrumSheet2x, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.constantanSheet), new ItemStack(ModItems.constantanSheet), AnvilReq.WROUGHTIRON,
			new ItemStack(ModItems.constantanSheet2x, 1)));
	anvilManager.addWeldRecipe(new AnvilRecipe(new ItemStack(ModItems.invarSheet), new ItemStack(ModItems.invarSheet), AnvilReq.STEEL, new ItemStack(
			ModItems.invarSheet2x, 1)));
	
	// Unfinished wires forging
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.tinStripe), null, "wire", AnvilReq.STONE, new ItemStack(ModItems.unfinishedTinWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.copperStripe), null, "wire", AnvilReq.COPPER, new ItemStack(ModItems.unfinishedCopperWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.goldStripe), null, "wire", AnvilReq.COPPER, new ItemStack(ModItems.unfinishedGoldWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.aluminumStripe), null, "wire", AnvilReq.COPPER, new ItemStack(ModItems.unfinishedAluminumWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.electrumStripe), null, "wire", AnvilReq.COPPER, new ItemStack(ModItems.unfinishedElectrumWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.ironStripe), null, "wire", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.unfinishedIronWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.steelStripe), null, "wire", AnvilReq.STEEL, new ItemStack(ModItems.unfinishedSteelWire, 1)));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(ModItems.redAlloyIngot), null, "wire", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.unfinishedRedAlloyWire, 2)));
	
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot), null, "tongs", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.tongs, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot), null, "drawplate", AnvilReq.WROUGHTIRON, new ItemStack(ModItems.ironDrawplate, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelIngot), null, "drawplate", AnvilReq.STEEL, new ItemStack(ModItems.steelDrawplate, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackSteelIngot), null, "drawplate", AnvilReq.BLACKSTEEL, new ItemStack(ModItems.blackSteelDrawplate, 1)).addRecipeSkill(Global.SKILL_TOOLSMITH));
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.brassSheet), null, "oilcan", AnvilReq.BRONZE, new ItemStack(ModItems.oilcan, 1)));
	
	// == Integration =====================================================
	
	anvilManager.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelSheet), null, "bucket", AnvilReq.STEEL, new ItemStack(ModItems.steelBucketEmpty, 1)));
	
	// Buildcraft
	if (TFCTech.enableBCCore)
		TFCTechBCRecipes.registerAnvilRecipes(anvilManager);
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:81,代码来源:ModRecipes.java

示例9: CachedAnvilRecipe

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public CachedAnvilRecipe(TYPE type, AnvilRecipe recipe)
{
    this(type, recipe.getAnvilreq(), recipe.getCraftingResult(), recipe.getInput1(), recipe.getInput2());
}
 
开发者ID:dries007,项目名称:TFCraft-NEIplugin,代码行数:5,代码来源:AnvilRecipeHandler.java

示例10: loadAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilRecipe; //导入依赖的package包/类
public static void loadAnvilRecipes()
{
	// Anvil Recipes
	AnvilManager anvil = AnvilManager.getInstance();

	// Add plans to anvil manager
	anvil.addPlan("gear", new PlanRecipe(new RuleEnum[] {RuleEnum.PUNCHLAST, RuleEnum.BENDNOTLAST, RuleEnum.DRAWNOTLAST}));
	anvil.addPlan("wrench", new PlanRecipe(new RuleEnum[] {RuleEnum.HITLAST, RuleEnum.DRAWSECONDFROMLAST, RuleEnum.BENDTHIRDFROMLAST}));
	anvil.addPlan("frame", new PlanRecipe(new RuleEnum[] {RuleEnum.HITLAST, RuleEnum.BENDSECONDFROMLAST, RuleEnum.BENDTHIRDFROMLAST}));

	// Instead of Wood
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bismuthBronzeIngot), null, "gear", AnvilReq.BISMUTHBRONZE, new ItemStack(BCTFCItems.Gears, 1, 0)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackBronzeIngot), null, "gear", AnvilReq.BLACKBRONZE, new ItemStack(BCTFCItems.Gears, 1, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bronzeIngot), null, "gear", AnvilReq.BRONZE, new ItemStack(BCTFCItems.Gears, 1, 2)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.roseGoldIngot), null, "gear", AnvilReq.COPPER, new ItemStack(BCTFCItems.Gears, 1, 3)));
	// Instead of Stone
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot), null, "gear", AnvilReq.WROUGHTIRON, new ItemStack(BCTFCItems.Gears, 1, 4)));
	// Instead of Iron
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelIngot), null, "gear", AnvilReq.STEEL, new ItemStack(BCTFCItems.Gears, 1, 5)));
	// Instead of Gold
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackSteelIngot), null, "gear", AnvilReq.BLACKSTEEL, new ItemStack(BCTFCItems.Gears, 1, 6)));
	// Instead of Diamond
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blueSteelIngot), null, "gear", AnvilReq.BLUESTEEL, new ItemStack(BCTFCItems.Gears, 1, 7)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.redSteelIngot), null, "gear", AnvilReq.REDSTEEL, new ItemStack(BCTFCItems.Gears, 1, 8)));

	// Wrench
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.copperIngot), null, "wrench", AnvilReq.STONE, new ItemStack(BCTFCItems.CopperWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bronzeIngot), null, "wrench", AnvilReq.COPPER, new ItemStack(BCTFCItems.BronzeWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bismuthBronzeIngot), null, "wrench", AnvilReq.COPPER, new ItemStack(BCTFCItems.BismuthBronzeWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackBronzeIngot), null, "wrench", AnvilReq.COPPER, new ItemStack(BCTFCItems.BlackBronzeWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronIngot), null, "wrench", AnvilReq.BRONZE, new ItemStack(BCTFCItems.WroughtIronWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelIngot), null, "wrench", AnvilReq.WROUGHTIRON, new ItemStack(BCTFCItems.SteelWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackSteelIngot), null, "wrench", AnvilReq.STEEL, new ItemStack(BCTFCItems.BlackSteelWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blueSteelIngot), null, "wrench", AnvilReq.BLACKSTEEL, new ItemStack(BCTFCItems.BlueSteelWrenchItem, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.redSteelIngot), null, "wrench", AnvilReq.BLACKSTEEL, new ItemStack(BCTFCItems.RedSteelWrenchItem, 1)));

	// Anvil Pipe Frames
	//OLD -> anvil.addRecipe(new MultiItemAnvilRecipe(new ItemStack(TFCItems.TinSheet), new ItemStack(BCTFCItems.Plans, 1, 2),40 + R.nextInt(35),CraftingRuleEnum.HITLAST, CraftingRuleEnum.BENDSECONDFROMLAST, CraftingRuleEnum.BENDTHIRDFROMLAST, false, AnvilReq.STONE, new ItemStack(BCTFCItems.PipeFrames, 8, 0)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.tinSheet), null, "frame", AnvilReq.STONE, new ItemStack(BCTFCItems.PipeFrames, 8, 0)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.leadSheet), null, "frame", AnvilReq.COPPER, new ItemStack(BCTFCItems.PipeFrames, 8, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.bronzeSheet), null, "frame", AnvilReq.COPPER, new ItemStack(BCTFCItems.PipeFrames, 8, 2)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.wroughtIronSheet), null, "frame", AnvilReq.BRONZE, new ItemStack(BCTFCItems.PipeFrames, 8, 3)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelSheet), null, "frame", AnvilReq.WROUGHTIRON, new ItemStack(BCTFCItems.PipeFrames, 8, 4)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blueSteelSheet), null, "frame", AnvilReq.BLACKSTEEL, new ItemStack(BCTFCItems.PipeFrames, 8, 5)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.redSteelSheet), null, "frame", AnvilReq.BLACKSTEEL, new ItemStack(BCTFCItems.PipeFrames, 8, 6)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackBronzeSheet), null, "frame", AnvilReq.COPPER, new ItemStack(BCTFCItems.PipeFrames, 8, 7)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.roseGoldSheet), null, "frame", AnvilReq.COPPER, new ItemStack(BCTFCItems.PipeFrames, 8, 8)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.blackSteelSheet), null, "frame", AnvilReq.STEEL, new ItemStack(BCTFCItems.PipeFrames, 8, 9)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.zincSheet), null, "frame", AnvilReq.STONE, new ItemStack(BCTFCItems.PipeFrames, 8, 10)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.copperSheet), null, "frame", AnvilReq.STONE, new ItemStack(BCTFCItems.PipeFrames, 8, 11)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.silverSheet), null, "frame", AnvilReq.COPPER, new ItemStack(BCTFCItems.PipeFrames, 8, 12)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.platinumSheet), null, "frame", AnvilReq.STEEL, new ItemStack(BCTFCItems.PipeFrames, 8, 13)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.sterlingSilverSheet), null, "frame", AnvilReq.COPPER, new ItemStack(BCTFCItems.PipeFrames, 8, 14)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.brassSheet), null, "frame", AnvilReq.STONE, new ItemStack(BCTFCItems.PipeFrames, 8, 15)));

	//Buckets
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.zincSheet), null, "bucket", AnvilReq.STONE, new ItemStack(BCTFCItems.Buckets, 1, 1)));
	anvil.addRecipe(new AnvilRecipe(new ItemStack(TFCItems.steelSheet), null, "bucket", AnvilReq.WROUGHTIRON, new ItemStack(BCTFCItems.Buckets, 1, 3)));
}
 
开发者ID:emris,项目名称:BCTFCcrossover,代码行数:60,代码来源:Recipes.java


注:本文中的com.bioxx.tfc.api.Crafting.AnvilRecipe类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。