public interface IPollSensorSetting extends ISensorSetting
| Modifier and Type | Method and Description |
|---|---|
int |
getPollFrequency(net.minecraft.tileentity.TileEntity te)
The value returned here is the interval between every check in ticks (the interval of calling getRedstoneValue()).
|
int |
getRedstoneValue(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int sensorRange,
java.lang.String textBoxText)
This method should return the outputted redstone value 0-15 of this sensor.
|
_getDescription, getAirUsage, needsGPSTool, notifyTextChangegetAdditionalInfo, getDescription, getRequiredUpgrades, getSensorPath, getTextboxIntRange, isEntityFilter, needsTextBoxint getPollFrequency(net.minecraft.tileentity.TileEntity te)
te - universal sensorint getRedstoneValue(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int sensorRange,
java.lang.String textBoxText)
world - the worldpos - the blockpos to testsensorRange - range of the sensor, based on the number of Range Upgrades inserted in the Universal Sensor.textBoxText - any text typed in the textfield of the Universal Sensor.