• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AnvilManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: undo

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的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.AnvilManager; //导入依赖的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.AnvilManager; //导入依赖的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.AnvilManager; //导入依赖的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.AnvilManager; //导入依赖的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.AnvilManager; //导入依赖的package包/类
public static void registerAnvilRecipes(AnvilManager anvilManager) {
	
	if (TFCTech.enableBCCore) {
		TFCTechBCCore.registerAnvilRecipes(anvilManager);
	}
	if (TFCTech.enableBCTransport) {
		TFCTechBCTransport.registerAnvilRecipes(anvilManager);
	}

}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:11,代码来源:TFCTechBCRecipes.java


示例7: onAnvilCrafting

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
@SubscribeEvent
public void onAnvilCrafting(AnvilCraftEvent e) {
	
	if (e.result == null)
		return;
	
	if (e.result.getItem() instanceof ItemTFCTechForgedItem) {
		TEAnvil anvil = (TEAnvil) e.anvilTE;
		AnvilManager.setDurabilityBuff(e.result, anvil.workRecipe.getSkillMult(anvil.lastWorker));
	}
	
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:13,代码来源:AnvilCraftingHandler.java


示例8: initialiseAnvil

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
public static void initialiseAnvil(World world) {
	AnvilManager anvilManager = AnvilManager.getInstance();
	AnvilManager.world = world;
	
	TFCTech.LOG.info("Registering Anvil Recipes");
	
	registerAnvilPlans(anvilManager);
	registerAnvilRecipes(anvilManager);
	
	TFCTech.LOG.info("Done Registering Anvil Recipes");
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:12,代码来源:ModRecipes.java


示例9: areAnvilRecipesRegistered

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
public static boolean areAnvilRecipesRegistered()
{
    if(!DecorationsMod.isLanternsEnabled)
        return true;
    
    Map map = AnvilManager.getInstance().getPlans();
    
    return map.containsKey(_lanternCorePlan);
}
 
开发者ID:Aleksey-Terzi,项目名称:DecorationsTFC,代码行数:10,代码来源:Recipes.java


示例10: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的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


示例11: newInstance

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public TemplateRecipeHandler newInstance()
{
    if (recipeList == null || weldRecipeList == null || hammers == null)
    {
        recipeList = AnvilManager.getInstance().getRecipeList();
        weldRecipeList = AnvilManager.getInstance().getWeldRecipeList();

        hammers = new ItemStack[Recipes.hammers.length];
        for (int i = 0; i < hammers.length; i++)
            hammers[i] = new ItemStack(Recipes.hammers[i]);
    }
    return super.newInstance();
}
 
开发者ID:dries007,项目名称:TFCraft-NEIplugin,代码行数:16,代码来源:AnvilRecipeHandler.java


示例12: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的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


示例13: getMaxDamage

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
@Override
public int getMaxDamage(ItemStack stack) {
	return (int) (getMaxDamage() + (getMaxDamage() * AnvilManager.getDurabilityBuff(stack)));
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:5,代码来源:ItemDrawplate.java


示例14: areAnvilRecipesInitialised

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
public static boolean areAnvilRecipesInitialised() {
	Map<String, PlanRecipe> map = AnvilManager.getInstance().getPlans();
	return map.containsKey("groove");
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:5,代码来源:ModRecipes.java


示例15: registerAnvilPlans

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
private static void registerAnvilPlans(AnvilManager anvilManager) {
	anvilManager.addPlan("groove", new PlanRecipe(new RuleEnum[] {
			RuleEnum.HITLAST,
			RuleEnum.BENDSECONDFROMLAST,
			RuleEnum.BENDTHIRDFROMLAST
	}));
	anvilManager.addPlan("mount", new PlanRecipe(new RuleEnum[] {
			RuleEnum.BENDLAST,
			RuleEnum.DRAWSECONDFROMLAST,
			RuleEnum.DRAWNOTLAST
	}));
	anvilManager.addPlan("dixie", new PlanRecipe(new RuleEnum[] {
			RuleEnum.BENDLAST,
			RuleEnum.BENDSECONDFROMLAST,
			RuleEnum.BENDTHIRDFROMLAST
	}));
	anvilManager.addPlan("wire", new PlanRecipe(new RuleEnum[] {
			RuleEnum.DRAWLAST,
			RuleEnum.DRAWNOTLAST,
			RuleEnum.ANY
	}));
	anvilManager.addPlan("drawplate", new PlanRecipe(new RuleEnum[] {
			RuleEnum.PUNCHLAST,
			RuleEnum.PUNCHSECONDFROMLAST,
			RuleEnum.HITANY
	}));
	anvilManager.addPlan("tongs", new PlanRecipe(new RuleEnum[] {
			RuleEnum.HITLAST,
			RuleEnum.DRAWSECONDFROMLAST,
			RuleEnum.BENDTHIRDFROMLAST
	}));
	anvilManager.addPlan("oilcan", new PlanRecipe(new RuleEnum[] {
			RuleEnum.BENDLAST,
			RuleEnum.BENDSECONDFROMLAST,
			RuleEnum.BENDTHIRDFROMLAST
	}));
	
	if (TFCTech.enableBCCore) {
		anvilManager.addPlan("wrench", new PlanRecipe(new RuleEnum[] {
				RuleEnum.HITLAST,
				RuleEnum.DRAWSECONDFROMLAST,
				RuleEnum.BENDTHIRDFROMLAST
		}));
	}
	
	if (TFCTech.enableBCTransport) {
		anvilManager.addPlan("frame", new PlanRecipe(new RuleEnum[] {
				RuleEnum.HITLAST,
				RuleEnum.BENDNOTLAST,
				RuleEnum.DRAWNOTLAST
		}));
	}
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:54,代码来源:ModRecipes.java


示例16: registerAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的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


示例17: areAnvilRecipesRegistered

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
public static boolean areAnvilRecipesRegistered()
{
    Map map = AnvilManager.getInstance().getPlans();
    
    return map.containsKey(TrusselPlan);
}
 
开发者ID:Aleksey-Terzi,项目名称:MerchantsTFC,代码行数:7,代码来源:Recipes.java


示例18: areAnvilRecipesRegistered

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的package包/类
public static boolean areAnvilRecipesRegistered()
{
    Map map = AnvilManager.getInstance().getPlans();
    
    return map.containsKey(LanternShellPlan);
}
 
开发者ID:Aleksey-Terzi,项目名称:LanternsTFC,代码行数:7,代码来源:Recipes.java


示例19: loadAnvilRecipes

import com.bioxx.tfc.api.Crafting.AnvilManager; //导入依赖的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.AnvilManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PropertyFactory类代码示例发布时间:2022-05-23
下一篇:
Java TDoubleByteMap类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap