Class SensorHandler
java.lang.Object
me.desht.pneumaticcraft.common.sensor.SensorHandler
- All Implemented Interfaces:
ISensorRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]static SensorHandlergetSensorByIndex(int index) getSensorForName(String name) Get a sensor by its basenamegetSensorFromPath(String buttonPath) String[]voidinit()voidRegistry for IBlockAndCoordinateEventSensorvoidRegistry for IBlockAndCoordinatePollSensorvoidregisterSensor(ISensorSetting sensor) Registry for IPollSensorSetting, EntityPollSensor and IEventSensorSetting, and any other instance of ISensorSetting.
-
Constructor Details
-
SensorHandler
public SensorHandler()
-
-
Method Details
-
getInstance
-
init
public void init() -
getSensorFromPath
-
getSensorByIndex
-
getSensorNames
-
getSensorForName
Get a sensor by its basename- Parameters:
name- the last part of the sensor path- Returns:
- the sensor settings
-
getUniversalSensorUpgrades
-
getDirectoriesAtLocation
-
getRequiredStacksFromText
-
registerSensor
Description copied from interface:ISensorRegistryRegistry for IPollSensorSetting, EntityPollSensor and IEventSensorSetting, and any other instance of ISensorSetting.- Specified by:
registerSensorin interfaceISensorRegistry
-
registerSensor
Description copied from interface:ISensorRegistryRegistry for IBlockAndCoordinateEventSensor- Specified by:
registerSensorin interfaceISensorRegistry
-
registerSensor
Description copied from interface:ISensorRegistryRegistry for IBlockAndCoordinatePollSensor- Specified by:
registerSensorin interfaceISensorRegistry
-