本文整理汇总了Java中slimeknights.tconstruct.library.TinkerRegistry.registerMelting方法的典型用法代码示例。如果您正苦于以下问题:Java TinkerRegistry.registerMelting方法的具体用法?Java TinkerRegistry.registerMelting怎么用?Java TinkerRegistry.registerMelting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类slimeknights.tconstruct.library.TinkerRegistry
的用法示例。
在下文中一共展示了TinkerRegistry.registerMelting方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerSmeltings
import slimeknights.tconstruct.library.TinkerRegistry; //导入方法依赖的package包/类
public static void registerSmeltings() {
for (SmeltQueue smelt : TiCQueues.getSmeltQueue()) { // 1st because it may provide fluids for later
if (smelt.getFluidOutput() == null) {
FluidStack fluid = getFluidForItems(smelt.getOutput());
if (fluid == null) {
Log.warn("Item used in Smeltery recipe '" + smelt.getOutput() + "' doesn't smelt into a fluid");
} else {
smelt.setFluidOutput(fluid.getFluid());
smelt.setAmount(smelt.getAmount() * fluid.amount);
}
}
if (smelt.getFluidOutput() != null) {
TinkerRegistry.registerMelting(smelt.getInput(), smelt.getFluidOutput(), (int) Math.max(1, Math.floor(smelt.getAmount())));
Log.debug("Tinkers.registerMelting: " + smelt.getInput() + ", " + smelt.getFluidOutput().getName() + ", " + smelt.getAmount());
}
}
TiCQueues.getSmeltQueue().clear();
}
示例2: init
import slimeknights.tconstruct.library.TinkerRegistry; //导入方法依赖的package包/类
@Optional.Method(modid = "tconstruct")
public static void init()
{
TinkerRegistry.registerMelting(new MeltingRecipe(RecipeMatch.of(ModBlocks.butter, 1000), ModFluids.liquid_butter, 300));
TinkerRegistry.registerBasinCasting(new CastingRecipe(new ItemStack(ModBlocks.butter), ModFluids.liquid_butter, 1000, 60));
if (Loader.isModLoaded("xlfoodmod"))
{
TinkerRegistry.registerMelting(new MeltingRecipe(RecipeMatch.of(ItemListxlfoodmod.butter, 250), ModFluids.liquid_butter, 200));
TinkerRegistry.registerTableCasting(new CastingRecipe(new ItemStack(ItemListxlfoodmod.butter), RecipeMatch.of(TinkerSmeltery.castIngot), ModFluids.liquid_butter, 250, 15));
}
}
示例3: registerfromItem
import slimeknights.tconstruct.library.TinkerRegistry; //导入方法依赖的package包/类
/**
* Registers special smeltery recipes (not alloying)
*/
static void registerfromItem() {
TinkerRegistry.registerMelting(Blocks.blockMeteoriteCobble, meteoriteFluid, 288);
TinkerRegistry.registerMelting(Blocks.blockObsidiorite, meteoriteFluid, 288);
TinkerRegistry.registerMelting(net.minecraft.init.Blocks.MAGMA, magmaFluid, 288);
TinkerRegistry.registerMelting(Items.dilithiumCrystal, dilithiumFluid, 72);
TinkerRegistry.registerMelting(Items.tiberiumCrystal, tiberiumFluid, 72);
TinkerRegistry.registerSmelteryFuel(new FluidStack(magmaFluid, 50), 100);
TinkerRegistry.registerSmelteryFuel(new FluidStack(nitroniteFluid, 100), 500);
TinkerRegistry.registerSmelteryFuel(new FluidStack(dilithiumFluid, 50), 100);
}
示例4: registerMelting
import slimeknights.tconstruct.library.TinkerRegistry; //导入方法依赖的package包/类
public static void registerMelting() {
for (ItemOre ore : OreRegistry.getItemOreRegistry()) {
if (FluidRegistry.isFluidRegistered(ore.getOre().getName())) {
Fluid fluid = FluidRegistry.getFluid(ore.getOre().getName());
TinkerRegistry.registerMelting(new ItemStack(ore, 1, 1), fluid, 2*Material.VALUE_Ingot);
}
}
}
示例5: undo
import slimeknights.tconstruct.library.TinkerRegistry; //导入方法依赖的package包/类
@Override
public void undo() {
for(MeltingRecipe recipe : recipes) {
TinkerRegistry.registerMelting(recipe);
}
}
示例6: apply
import slimeknights.tconstruct.library.TinkerRegistry; //导入方法依赖的package包/类
@Override
public void apply() {
LogHelper.info("Adding Tinker's smeltery melt to turn '"
+ ItemUtility.outputItemName(with) + "' into '" + what + "'.");
TinkerRegistry.registerMelting(recipe);
}