Distillation
Link to distillation
remove
Link to remove
Name | Type |
---|---|
Name Recipe Name | Type String |
Example:
ZenScript Copy// mods.immersivepetroleum.DistillationTower.remove(String recipeName);
mods.immersivepetroleum.DistillationTower.remove("oilcracking");
removeAll
Link to removeall
Name | Type |
---|
Example:
ZenScript Copymods.immersivepetroleum.DistillationTower.removeAll();
Builder
Link to builder
constructor
Link to constructor
Name | Type |
---|
Example:
ZenScript Copy// new mods.immersivepetroleum.DistillationBuilder();
new mods.immersivepetroleum.DistillationBuilder();
setOutputFluid
Link to setoutputfluid
Name | Type |
---|---|
Name Output Fluid | 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
Name | Type |
---|---|
Name Item | Type ItemStack |
Name Chance | Type Integer (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
Name | Type |
---|---|
Name Item | Type ItemStack |
Name 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
Name | Type |
---|---|
Name Flux/t | Type Integer (>=1) |
Name Ticks | Type Integer (>=1) |
Example:
ZenScript Copy// builderInstance.setEnergyAndTime(int fluxPerTick, int ticks);
builderInstance.setEnergyAndTime(1024, 1);
setEnergy
Link to setenergy
Name | Type |
---|---|
Name FluxPerTick | Type Integer (>=1) |
Example:
ZenScript Copy// builderInstance.setEnergy(int fluxPerTick);
builderInstance.setEnergy(1024);
setTime
Link to settime
Name | Type |
---|---|
Name Ticks | Type Integer (>=1) |
Example:
ZenScript Copy// builderInstance.setTime(int ticks);
builderInstance.setTime(1);
build
Link to build
Name | Type |
---|---|
Name Recipe Name | Type String |
Example:
ZenScript Copy// builderInstance.build(String recipeName);
builderInstance.build("example_name");
Copy/Paste examples:
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 is the Default for Time.
.build("concrete_reversal");