public interface IAirHandlerMachineFactory
IAirHandlerMachine capability interface; PNCCapabilities.AIR_HANDLER_MACHINE_CAPABILITY can be used for this.
Get an instance of this factory with
PneumaticRegistry.IPneumaticCraftInterface.getAirHandlerMachineFactory().
| Modifier and Type | Method and Description |
|---|---|
IAirHandlerMachine |
createAirHandler(float dangerPressure,
float criticalPressure,
int volume)
Returns a new instance of an IAirHandler.
|
IAirHandlerMachine |
createTierOneAirHandler(int volume)
Create a standard tier one air handler.
|
IAirHandlerMachine |
createTierTwoAirHandler(int volume)
Create a standard tier two air handler.
|
IAirHandlerMachine createTierOneAirHandler(int volume)
volume - the air handler volume, in mL.IAirHandlerMachine createTierTwoAirHandler(int volume)
volume - the air handler volume, in mL.IAirHandlerMachine createAirHandler(float dangerPressure, float criticalPressure, int volume)
ITickableTileEntity.tick()TileEntity.load(BlockState, CompoundNBT)TileEntity.save(CompoundNBT)dangerPressure - minimum pressure at which this machine can explode (the yellow to red transition)criticalPressure - the absolute maximum pressure the machine can take; 7 bar in tier 1 machines, 25 bar in tier 2 machinesvolume - volume of the machine's internal storage; the pressure (in bar) is the actual amount of air in the machine divided by its volume