Distillation
remove
Name | Type |
---|---|
Name Recipe Name | Type String |
Example:
// mods.immersivepetroleum.DistillationTower.remove(String recipeName);
mods.immersivepetroleum.DistillationTower.remove("oilcracking");
removeAll
Name | Type |
---|
Example:
mods.immersivepetroleum.DistillationTower.removeAll();
Builder
constructor
Name | Type |
---|
Example:
// new mods.immersivepetroleum.DistillationBuilder();
new mods.immersivepetroleum.DistillationBuilder();
setOutputFluid
Name | Type |
---|---|
Name Output Fluid | Type Fluidstack |
Example:
// builderInstance.setOutputFluids(IFluidStack[] fluidOutputs);
builderInstance.setOutputFluids([<fluid:minecraft:water> * 1]);
addByproduct(IItemStack item, int chance)
Name | Type |
---|---|
Name Item | Type ItemStack |
Name Chance | Type Integer (0 - 100) |
Example:
// builderInstance.addByproduct(IItemStack item, int chance);
builderInstance.addByproduct(<item:minecraft:cobblestone>, 50);
addByproduct(IItemStack item, double chance)
Name | Type |
---|---|
Name Item | Type ItemStack |
Name Chance | Type Double (0.0 - 1.0) |
Example:
// builderInstance.addByproduct(IItemStack item, double chance);
builderInstance.addByproduct(<item:minecraft:stone>, 0.25);
setEnergyAndTime
Name | Type |
---|---|
Name Flux/t | Type Integer (>=1) |
Name Ticks | Type Integer (>=1) |
Example:
// builderInstance.setEnergyAndTime(int fluxPerTick, int ticks);
builderInstance.setEnergyAndTime(1024, 1);
setEnergy
Name | Type |
---|---|
Name FluxPerTick | Type Integer (>=1) |
Example:
// builderInstance.setEnergy(int fluxPerTick);
builderInstance.setEnergy(1024);
setTime
Name | Type |
---|---|
Name Ticks | Type Integer (>=1) |
Example:
// builderInstance.setTime(int ticks);
builderInstance.setTime(1);
build
Name | Type |
---|---|
Name Recipe Name | Type String |
Example:
// builderInstance.build(String recipeName);
builderInstance.build("example_name");
Copy/Paste examples:
new 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");