Interface ISensorSetting
- All Superinterfaces:
IBaseSensor
- All Known Subinterfaces:
IEventSensorSetting,IPollSensorSetting
- All Known Implementing Classes:
ConstantSensor,EntityInRangeSensor,PlayerAttackSensor,PlayerHealthSensor,PlayerItemPickupSensor,TwitchStreamerSensor,WorldDayLightSensor,WorldGlobalVariableAnalogSensor,WorldGlobalVariableSensor,WorldPlayersInServerSensor,WorldRainingSensor,WorldTicktimeSensor,WorldTimeSensor,WorldWeatherForecaster
-
Method Summary
Modifier and TypeMethodDescription_getDescription(String path) Don't call this directly; used internally byIBaseSensor.getDescription()default intgetAirUsage(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) Get the air usage for this sensor.default booleanCheck if this sensor type needs a GPS (or GPS Area) Tooldefault voidnotifyTextChange(String newText) Notify the sensor that the textbox has changed, so it can carry out any necessary recalculation.Methods inherited from interface me.desht.pneumaticcraft.api.universal_sensor.IBaseSensor
getAdditionalInfo, getDescription, getHelpPromptText, getHelpText, getRequiredUpgrades, getSensorPath, getTextboxIntRange, getTextBoxOptions, isEntityFilter, needsTextBox, strictComboBox
-
Method Details
-
getAirUsage
default int getAirUsage(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) Get the air usage for this sensor.- Returns:
- the sensor air usage in mL air per tick
-
notifyTextChange
Notify the sensor that the textbox has changed, so it can carry out any necessary recalculation. -
needsGPSTool
default boolean needsGPSTool()Check if this sensor type needs a GPS (or GPS Area) Tool- Returns:
- true if a GPS Tool is required
-
_getDescription
Don't call this directly; used internally byIBaseSensor.getDescription()- Parameters:
path- the sensor path- Returns:
- some description text for the sensor
-