This page relates to Immersive Intelligence, which has built-in support!
Machinegun
The Machinegun
package can be used to tweak coolant fluids accepted by the Immersive Intelligence Machinegun.
Importing the Package
import mods.immersiveintelligence.Machinegun;
Adding/Setting a Coolant
Parameters
Type | Name | Required |
---|---|---|
Type ILiquidStack | Name Coolant | Required Yes |
Type int | Name Amount | Required Yes |
Syntax
mods.immersiveintelligence.Machinegun.addCoolant(ILiquidStack fuelEntry, int amountPerUse);mods.immersiveintelligence.Machinegun.setCoolAmount(ILiquidStack fuelEntry, int amountPerUse);
The methods accept the same parameters, but they serve different purposes.
To register a new Coolant use addCoolant
, to change the value for an existing one use setCoolAmount
.
Example
mods.immersiveintelligence.Machinegun.addCoolant(<fluid:milk>, 20);mods.immersiveintelligence.Machinegun.setCoolAmount(<fluid:water>, 5);
Removing a Coolant
Parameters
Type | Name | Required |
---|---|---|
Type ILiquidStack | Name Coolant | Required Yes |
Syntax
mods.immersiveintelligence.Machinegun.removeCoolant(ILiquidStack fuelEntry;
Example
mods.immersiveintelligence.Machinegun.removeCoolant(<fluid:water>);