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


Java Smeltery.addMelting方法代码示例

本文整理汇总了Java中tconstruct.library.crafting.Smeltery.addMelting方法的典型用法代码示例。如果您正苦于以下问题:Java Smeltery.addMelting方法的具体用法?Java Smeltery.addMelting怎么用?Java Smeltery.addMelting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tconstruct.library.crafting.Smeltery的用法示例。


在下文中一共展示了Smeltery.addMelting方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SmeltMekanism

import tconstruct.library.crafting.Smeltery; //导入方法依赖的package包/类
protected static void SmeltMekanism()
{
	for (int i = 0; i < 3; i++)
	{
		Smeltery.addMelting(getBlock(Info.osmiumore), i, 550, new FluidStack(getFluid("molten.osmium"), ingotCostSmeltery));
	
		if (Configurations.miniSmelting)
		{
			CrucibleRegistry.register(getIDs(Info.osmiumore), i, ingotCost*2, getFluid("molten.osmium"), ingotCost, getBlock(Info.osmiumore));
		}
	}
	
	if (Configurations.allowDustSmelting)
	{
		Smeltery.addMelting(new ItemStack(getItem(Info.osmiumgrav),4,0), getIDs(Info.osmiumore), 0, 600, new FluidStack(getFluid("molten.osmium"), dustCostSmeltery));
		Smeltery.addMelting(new ItemStack(getItem(Info.osmiumsand),4,0), getIDs(Info.osmiumore), 1, 600, new FluidStack(getFluid("molten.osmium"), dustCostSmeltery));
		Smeltery.addMelting(new ItemStack(getItem(Info.osmiumdust),4,0), getIDs(Info.osmiumore), 2, 600, new FluidStack(getFluid("molten.osmium"), dustCostSmeltery));

		if (Configurations.miniSmelting)
		{
			CrucibleRegistry.register(getItem(Info.osmiumgrav).itemID, 0, dustCostGeneral*2, getFluid("molten.osmium"), dustCostGeneral, getBlock(Info.osmiumore));
			CrucibleRegistry.register(getItem(Info.osmiumsand).itemID, 0, dustCostGeneral*2, getFluid("molten.osmium"), dustCostGeneral, getBlock(Info.osmiumore));
			CrucibleRegistry.register(getItem(Info.osmiumdust).itemID, 0, dustCostGeneral*2, getFluid("molten.osmium"), dustCostGeneral, getBlock(Info.osmiumore));
		}
	}
}
 
开发者ID:Zerokyuuni,项目名称:Ex-Aliquo,代码行数:27,代码来源:ExtraTic_Mekanism.java

示例2: addSmelteryRecipes

import tconstruct.library.crafting.Smeltery; //导入方法依赖的package包/类
private static void addSmelteryRecipes() {
	Smeltery.addMelting(new ItemStack(BlockRegistry.oresOres), 800, new FluidStack(LiquidRegistry.moltenStarSteel, ingot * 2));
	Smeltery.addMelting(new ItemStack(BlockRegistry.storage, 1, 3), 800, new FluidStack(LiquidRegistry.pureMoltenStarSteel, block));
	Smeltery.addMelting(new ItemStack(BlockRegistry.storage, 1, 4), 800, new FluidStack(TinkerSmeltery.moltenSteelFluid, block));
	Smeltery.addMelting(new ItemStack(ItemRegistry.ingotsMeta, 1, 0), BlockRegistry.storage, 3, 400, new FluidStack(LiquidRegistry.pureMoltenStarSteel, ingot));
	Smeltery.addMelting(new ItemStack(ItemRegistry.ingotsMeta, 1, 1), BlockRegistry.storage, 4, 400, new FluidStack(TinkerSmeltery.moltenSteelFluid, ingot));
	Smeltery.addAlloyMixing(new FluidStack(LiquidRegistry.pureMoltenStarSteel, ingot * 2), new FluidStack(TinkerSmeltery.moltenSteelFluid, ingot * 2), new FluidStack(LiquidRegistry.moltenStarSteel, ingot));
}
 
开发者ID:MagiciansArtificeTeam,项目名称:Magicians-Artifice,代码行数:9,代码来源:TiConCompat.java

示例3: SmeltArs

import tconstruct.library.crafting.Smeltery; //导入方法依赖的package包/类
protected static void SmeltArs()
{
	for (int i = 0; i < 10; i++)
	{
		Smeltery.addMelting(new ItemStack(getItem(Info.essences), 1, i), getIDs(Info.essenceBlock), 0, 800, new FluidStack(getFluid("liquidessence"), 1000));
	}
}
 
开发者ID:Zerokyuuni,项目名称:Ex-Aliquo,代码行数:8,代码来源:ArsMagica_Tinker.java

示例4: addMelting

import tconstruct.library.crafting.Smeltery; //导入方法依赖的package包/类
private void addMelting(ItemStack input, FluidStack output, int temp) {
	if (output.getFluid() == FluidRegistry.LAVA) {
		output = FluidRegistry.getFluidStack("stone.seared", SEARED_STONE_FOR_BLOCK);
	}
	BlockWithMeta<Block> render = getRenderBlock(input, output);
	if (render != null) {
		temp /= 2;
		if (!(input.getItem() instanceof ItemBlock)) {
			temp -= temp / 3;
		}
		Smeltery.addMelting(input, render.block, render.meta, temp, output);
	}
}
 
开发者ID:lawremi,项目名称:PerFabricaAdAstra,代码行数:14,代码来源:TConstructIntegration.java

示例5: addBedrockiumMaterial

import tconstruct.library.crafting.Smeltery; //导入方法依赖的package包/类
public void addBedrockiumMaterial() {
    if (ExtraUtils.bedrockiumBlock == null || ExtraUtils.bedrockium == null) {
        ExtraUtils.tcon_bedrock_material_id = -1;
        return;
    }
    final int id = ExtraUtils.tcon_bedrock_material_id;
    if (id <= 0) {
        return;
    }
    NBTTagCompound tag = new NBTTagCompound();
    tag.setInteger("Id", id);
    final String name = "Bedrockium";
    tag.setString("Name", "Bedrockium");
    tag.setString("localizationString", "material.extrautils.bedrockium");
    tag.setInteger("Durability", 7500);
    tag.setInteger("MiningSpeed", 800);
    tag.setInteger("HarvestLevel", 7);
    tag.setInteger("Attack", 4);
    tag.setFloat("HandleModifier", 1.75f);
    tag.setInteger("Reinforced", 0);
    tag.setFloat("Bow_ProjectileSpeed", 3.0f);
    tag.setInteger("Bow_DrawSpeed", 200);
    tag.setFloat("Projectile_Mass", 40.0f);
    tag.setFloat("Projectile_Fragility", 0.4f);
    tag.setString("Style", EnumChatFormatting.BLACK.toString());
    tag.setInteger("Color", 16777215);
    FMLInterModComms.sendMessage("TConstruct", "addMaterial", tag);
    FluidRegistry.registerFluid(TConIntegration.bedrock);
    FluidType.registerFluidType(TConIntegration.bedrock.getName(), (Block)ExtraUtils.bedrockiumBlock, 0, 850, TConIntegration.bedrock, true);
    Smeltery.addMelting(new ItemStack((Block)ExtraUtils.bedrockiumBlock, 1), (Block)ExtraUtils.bedrockiumBlock, 0, 850, new FluidStack(TConIntegration.bedrock, 1296));
    Smeltery.addMelting(new ItemStack((Item)ExtraUtils.bedrockium, 1, 0), (Block)ExtraUtils.bedrockiumBlock, 0, 850, new FluidStack(TConIntegration.bedrock, 144));
    final ItemStack ingotcast = new ItemStack(TinkerSmeltery.metalPattern, 1, 0);
    TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack((Block)ExtraUtils.bedrockiumBlock, 1), new FluidStack(TConIntegration.bedrock, 1296), (ItemStack)null, true, 100);
    TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack((Item)ExtraUtils.bedrockium, 1), new FluidStack(TConIntegration.bedrock, 144), ingotcast, false, 50);
    tag = new NBTTagCompound();
    tag.setString("FluidName", TConIntegration.bedrock.getName());
    tag.setInteger("MaterialId", id);
    FMLInterModComms.sendMessage("TConstruct", "addPartCastingMaterial", tag);
    tag = new NBTTagCompound();
    tag.setInteger("MaterialId", id);
    tag.setTag("Item", (NBTBase)new ItemStack((Item)ExtraUtils.bedrockium, 1, 0).writeToNBT(new NBTTagCompound()));
    tag.setInteger("Value", 2);
    FMLInterModComms.sendMessage("TConstruct", "addMaterialItem", tag);
    ExtraUtilsMod.proxy.exectuteClientCode(new IClientCode() {
        @SideOnly(Side.CLIENT)
        @Override
        public void exectuteClientCode() {
            new TConTextureResourcePackBedrockium("Bedrockium").register();
        }
    });
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:52,代码来源:TConIntegration.java

示例6: addUnstableMaterial

import tconstruct.library.crafting.Smeltery; //导入方法依赖的package包/类
public void addUnstableMaterial() {
    if (ExtraUtils.unstableIngot == null || ExtraUtils.decorative1 == null) {
        ExtraUtils.tcon_unstable_material_id = -1;
        return;
    }
    final int id = ExtraUtils.tcon_unstable_material_id;
    if (id <= 0) {
        return;
    }
    NBTTagCompound tag = new NBTTagCompound();
    tag.setInteger("Id", id);
    final String name = "unstableIngot";
    final ToolMaterial mat = new ToolMaterial("unstableIngot", "material.extrautils.unstableIngot", 4, 100, 700, 2, 0.6f, 4, 0.0f, EnumChatFormatting.WHITE.toString(), 16777215);
    TConstructRegistry.addtoolMaterial(id, mat);
    TConstructRegistry.addDefaultToolPartMaterial(id);
    TConstructRegistry.addBowMaterial(id, 109, 1.0f);
    TConstructRegistry.addArrowMaterial(id, 2.4f, 0.0f);
    ExtraUtilsMod.proxy.exectuteClientCode(new IClientCode() {
        @SideOnly(Side.CLIENT)
        @Override
        public void exectuteClientCode() {
            if (FMLCommonHandler.instance().getSide().isClient()) {
                TConstructClientRegistry.addMaterialRenderMapping(id, "tinker", mat.name().toLowerCase(), true);
            }
        }
    });
    FluidRegistry.registerFluid(TConIntegration.unstable);
    FluidType.registerFluidType(TConIntegration.unstable.getName(), (Block)ExtraUtils.decorative1, 5, 850, TConIntegration.unstable, true);
    Smeltery.addMelting(new ItemStack((Block)ExtraUtils.decorative1, 1, 5), (Block)ExtraUtils.decorative1, 5, 850, new FluidStack(TConIntegration.unstable, 648));
    Smeltery.addMelting(new ItemStack(ExtraUtils.unstableIngot, 1, 0), (Block)ExtraUtils.decorative1, 5, 850, new FluidStack(TConIntegration.unstable, 72));
    Smeltery.addMelting(new ItemStack(ExtraUtils.unstableIngot, 1, 1), (Block)ExtraUtils.decorative1, 5, 850, new FluidStack(TConIntegration.unstable, 8));
    Smeltery.addMelting(new ItemStack(ExtraUtils.unstableIngot, 1, 2), (Block)ExtraUtils.decorative1, 5, 850, new FluidStack(TConIntegration.unstable, 144));
    TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack((Block)ExtraUtils.decorative1, 1, 5), new FluidStack(TConIntegration.unstable, 1296), (ItemStack)null, true, 100);
    final List<CastingRecipe> newRecipies = new LinkedList<CastingRecipe>();
    for (final CastingRecipe recipe : TConstructRegistry.getTableCasting().getCastingRecipes()) {
        if (recipe.castingMetal.getFluid() == TinkerSmeltery.moltenIronFluid && recipe.cast != null && recipe.cast.getItem() instanceof IPattern) {
            if (!(recipe.getResult().getItem() instanceof DynamicToolPart)) {
                continue;
            }
            newRecipies.add(recipe);
        }
    }
    final FluidType ft = FluidType.getFluidType(TConIntegration.unstable);
    for (final CastingRecipe recipe2 : newRecipies) {
        final ItemStack output = recipe2.getResult().copy();
        output.setItemDamage(id);
        final FluidStack liquid2 = new FluidStack(TConIntegration.unstable, recipe2.castingMetal.amount);
        TConstructRegistry.getTableCasting().addCastingRecipe(output, liquid2, recipe2.cast, recipe2.consumeCast, recipe2.coolTime);
        Smeltery.addMelting(ft, output, 0, liquid2.amount / 2);
    }
    tag = new NBTTagCompound();
    tag.setInteger("MaterialId", id);
    tag.setTag("Item", (NBTBase)new ItemStack(ExtraUtils.unstableIngot, 1, 0).writeToNBT(new NBTTagCompound()));
    tag.setInteger("Value", 2);
    FMLInterModComms.sendMessage("TConstruct", "addMaterialItem", tag);
    tag = new NBTTagCompound();
    tag.setInteger("MaterialId", id);
    tag.setTag("Item", (NBTBase)new ItemStack(ExtraUtils.unstableIngot, 1, 2).writeToNBT(new NBTTagCompound()));
    tag.setInteger("Value", 2);
    FMLInterModComms.sendMessage("TConstruct", "addMaterialItem", tag);
    ExtraUtilsMod.proxy.exectuteClientCode(new IClientCode() {
        @SideOnly(Side.CLIENT)
        @Override
        public void exectuteClientCode() {
            new TConTextureResourcePackUnstableIngot("unstableIngot").register();
        }
    });
}
 
开发者ID:sameer,项目名称:ExtraUtilities,代码行数:69,代码来源:TConIntegration.java


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