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

Java Smeltery类代码示例

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

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



Smeltery类属于tconstruct.library.crafting包,在下文中一共展示了Smeltery类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: setMeltingTemp

import tconstruct.library.crafting.Smeltery; //导入依赖的package包/类
public static void setMeltingTemp (final String fluidName, final int newTemp)
{
    // If either the input or new temperature are null or invalid, back out.
    if (fluidName == null || newTemp <= 0)
    {
        return;
    }

    // Otherwise, find matching recipe and adjust its melting temperature.
    for (Entry<ItemMetaWrapper, FluidStack> meltingEntry : Smeltery.instance.getSmeltingList().entrySet())
    {
        // FluidStack's getUnlocalizedName method sticks "fluid." before the actual name,
        // so I guess we'll be doing the same thing here
        String prefixedFluidName = !fluidName.startsWith("fluid.")
                ? "fluid." + fluidName
                : fluidName;

        if (meltingEntry.getValue().getUnlocalizedName().equals(prefixedFluidName))
        {
            ItemMetaWrapper inputWrapper = meltingEntry.getKey();
            ItemStack inputStack = new ItemStack(inputWrapper.item, 1, inputWrapper.meta);

            if (inputStack != null)
            {
                smeltingRegistry.addMeltable(inputStack, isOre(inputStack), meltingEntry.getValue(), newTemp);
            }
        }
    }
}
 
开发者ID:UndeadZeratul,项目名称:TWBB-Tweaks,代码行数:30,代码来源:TSteelworksHandler.java


示例3: 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


示例4: 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


示例5: 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


示例6: 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


示例7: 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


示例8: registerAlloyingRecipe

import tconstruct.library.crafting.Smeltery; //导入依赖的package包/类
@Override
public void registerAlloyingRecipe(FluidStack output, List<FluidStack> inputs) {
	Smeltery.addAlloyMixing(output, inputs.toArray(new FluidStack[0]));
}
 
开发者ID:lawremi,项目名称:PerFabricaAdAstra,代码行数:5,代码来源:TConstructIntegration.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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