Distillation
Link to distillation
remove
Link to remove
名称 | Type |
---|---|
名称 レシピ名 | Type 文字列型 |
Example:
ZenScript Copy// mods.immersivepetroleum.DistillationTower.remove(String recipeName);
mods.immersivepetroleum.DistillationTower.remove("oilcracking");
removeAll
Link to removeall
名称 | Type |
---|---|
名称 | Type |
Example:
ZenScript Copymods.immersivepetroleum.DistillationTower.removeAll();
Builder
Link to builder
コンストラクター
Link to コンストラクター
名称 | Type |
---|---|
名称 | Type |
Example:
ZenScript Copy// new mods.immersivepetroleum.DistillationBuilder();
new mods.immersivepetroleum.DistillationBuilder();
setOutputFluid
Link to setoutputfluid
名称 | Type |
---|---|
名称 出力流体値 | Type Fluidstack |
Example:
ZenScript Copy// builderInstance.setOutputFluids(IFluidStack[] fluidOutputs);
builderInstance.setOutputFluids([<fluid:minecraft:water> * 1]);
addByproduct(IItemStack item, int chance)
Link to addbyproductiitemstack-item-int-chance
名称 | Type |
---|---|
名称 Item | Type ItemStack |
名称 Chance | Type 整数 (0 - 100) |
Example:
ZenScript Copy// builderInstance.addByproduct(IItemStack item, int chance);
builderInstance.addByproduct(<item:minecraft:cobblestone>, 50);
addByproduct(IItemStack item, double chance)
Link to addbyproductiitemstack-item-double-chance
名称 | Type |
---|---|
名称 Item | Type ItemStack |
名称 Chance | Type Double (0.0 - 1.0) |
Example:
ZenScript Copy// builderInstance.addByproduct(IItemStack item, double chance);
builderInstance.addByproduct(<item:minecraft:stone>, 0.25);
setEnergyAndTime
Link to setenergyandtime
名称 | Type |
---|---|
名称 Flux/t | Type 整数 (>=1) |
名称 Ticks | Type 整数 (>=1) |
Example:
ZenScript Copy// builderInstance.setEnergyAndTime(int fluxPerTick, int ticks);
builderInstance.setEnergyAndTime(1024, 1);
setEnergy
Link to setenergy
名称 | Type |
---|---|
名称 FluxPerTick | Type 整数 (>=1) |
Example:
ZenScript Copy// builderInstance.setEnergy(int fluxPerTick);
builderInstance.setEnergy(1024);
setTime
Link to settime
名称 | Type |
---|---|
名称 Ticks | Type 整数 (>=1) |
Example:
ZenScript Copy// builderInstance.setTime(int ticks);
builderInstance.setTime(1);
build
Link to build
名称 | Type |
---|---|
名称 レシピ名 | Type 文字列型 |
Example:
ZenScript Copy// builderInstance.build(String recipeName);
builderInstance.build("example_name");
コピー/貼り付け例:
ZenScript Copynew DistillationBuilder()
.setOutputFluids([<fluid:minecraft:water> * 1]) // Array of output fluids
.setInputFluid(<tag:minecraft:lava>, 500) // Input Fluid Tag and the ammount of fluid in mB
.addByproduct(<item:minecraft:cobblestone>, 50) // Chance using integer (0 - 100)
.addByproduct(<item:minecraft:stone>, 0.25) // Chance using double (0.0 - 1.0)
.addByproduct(<item:minecraft:obsidian>, 0.007) // Integer is for convenience, using double gives more control
.setEnergyAndTime(1024, 1) // Can be done individualy with setEnergy(int) and setTime(int)
.build("lava_to_solids");
new DistillationBuilder()
.setOutputFluids([<fluid:minecraft:water> * 500])
.setInputFluid(<tag:forge:concrete>, 500)
.addByproduct(<item:minecraft:gravel>, 0.5)
.addByproduct(<item:minecraft:sand>, 0.25)
.addByproduct(<item:minecraft:sand>, 0.25)
.addByproduct(<item:minecraft:clay_ball>, 0.125)
.setEnergy(2048) // 2048 is the Default for Energy.
.setTime(1) // 1 は Time のデフォルトです。
.build("concrete_reversal");