本篇教程由作者设定未经允许禁止转载。
灰烬晶体开采机
导包
import mods.embers.EmberBore;
import mods.embers.EmberBoreSet;
添加设置
var boreset = mods.embers.EmberBore.create(int[] dimensionIDs, string[] biomes);
var defaultBoreset = mods.embers.EmberBore.getDefault();
dimensionIDs为灰烬晶体开采机适用的所有维度,biomes为适用的所有生物群落
开采物品输出修改
boreset.addOutput(WeightedItemStack output);
boreset.removeOutput(IItemStack output);
boreset.clear();
熔炼炉
导包
import mods.embers.Melter;
添加配方
mods.embers.Melter.add(ILiquidStack outputfluid, IIngredient input, @Optional secondaryfluidoutput);
secondaryfluidoutput指熔炼炉底座旁加地质分离器时副产物。
移除配方
mods.embers.Melter.remove(ILiquidStack outputfluid); //根据输出流体移除,实测此方法可能无效
mods.embers.Melter.remove(IItemStack inputitem); //根据物品输入移除,实测有效
压印锤
导包
import mods.embers.Stamper;
添加配方
mods.embers.Stamper.add(IItemStack output, ILiquidStack liquid, IIngredient stamp, @Optional IIngredient input);
移除配方
mods.embers.Stamper.remove(IItemStack output);
混合离心器(搅拌机)
导包
import mods.embers.Mixer;
添加配方
mods.embers.Mixer.add(ILiquidStack outputfluid, ILiquidStack[] inputfluids);
注意:离心机中有 4 个流体输入,但 JEI 仅显示 3 个。
移除配方
mods.embers.Mixer.remove(ILiquidStack outputfluid);
线圈炉
导包
import mods.embers.HeatCoil;
添加配方
mods.embers.HeatCoil.add(IItemStack output, IIngredient input);
移除配方
mods.embers.HeatCoil.remove(IItemStack output);
炼金术
导包
import mods.embers.Alchemy;
添加配方
mods.embers.Alchemy.add(IItemStack output, IIngredient[] inputs, int[][string] aspectRange);
注意:第一个input对应于炼金台的中心物品
注意:aspectRange必须是以 string aspect 为键,以 int[] range 为值的关联数组。
该范围可以使用start .. (end + 1)或start to (end + 1)表示
移除配方
mods.embers.Alchemy.remove(IItemStack output);
自定义Aspecti链接到自定义aspect什么玩意
mods.embers.Alchemy.addAspect(string name, IItemStack item);
黎明石砧
导包
import mods.embers.DawnstoneAnvil;
添加配方
mods.embers.DawnstoneAnvil.add(IItemStack[] outputs, IIngredient inputTop, IIngredient inputBottom);
注意:放置在黎明石砧下方的储物仓只会收集一个输出。
移除配方
mods.embers.DawnstoneAnvil.remove(IIngredient inputTop, IIngredient inputBottom);
添加物品修复黑名单
mods.embers.DawnstoneAnvil.blacklistRepair(IIngredient input);
mods.embers.DawnstoneAnvil.blacklistMateriaRepair(IIngredient input);
移除黑名单
mods.embers.DawnstoneAnvil.blacklistBreakdown(IIngredient input);
黎明石砧拓展
导包
itemstack.hasHeat(); // returns bool
itemstack.getHeat(); //returns float
itemstack.setHeat(float level);
itemstack.getMaxHeat(); // returns float
itemstack.getHeatLevel(); // returns int
itemstack.setHeatLevel(int level);
itemstack.addModifier(IItemStack modifier);
Boolean itemstack.isModifierValid(string modifiername);
Boolean itemstack.hasModifier(string modifiername);
Integer itemstack.getModifierLevel(string modifiername);
itemstack.setModifierLevel(string modifiername, int level);
内容拓展
ingredient.anyHeat();
ingredient.onlyHeatAtLeast(float amount);
ingredient.onlyHeatAtMost(float amount);
ingredient.onlyHeatLevelAtLeast(int level);
ingredient.onlyHeatLevelAtMost(int level);
ingredient.onlyWithModifier(string modifier);
ingredient.onlyWithModifierLevelAtLeast(string modifier, int level);
ingredient.onlyWithModifierLevelAtMost(string modifier, int level);
ingredient.onlyIfModifierValid(string modifier);
灰烬能量
导包
import mods.embers.EmberGeneration;
灰烬能量生成所需燃料与产生灰烬能量值
mods.embers.EmberGeneration.addEmberFuel(IIngredient item, double ember);
mods.embers.EmberGeneration.removeEmberFuel(IItemStack item);
金属块增加产能倍率系数
mods.embers.EmberGeneration.addMetalCoefficient(IIngredient item, double coefficient);
催化室/燃烧室
mods.embers.EmberGeneration.addCombustionFuel(IIngredient item, double coefficient);
mods.embers.EmberGeneration.removeCombustionFuel(IItemStack item);
mods.embers.EmberGeneration.addCatalysisFuel(IIngredient item, double coefficient);
mods.embers.EmberGeneration.removeCatalysisFuel(IItemStack item);
微型锅炉
mods.embers.EmberGeneration.addBoilerFluid(ILiquidStack fluid, ILiquidStack gas);
mods.embers.EmberGeneration.removeBoilerFluid(ILiquidStack input);
反应锅炉
mods.embers.EmberGeneration.addSteamEngineFuel(ILiquidStack fluid, double multiplier);
mods.embers.EmberGeneration.removeSteamEngineFuel(ILiquidStack fluid);