public class WorldGlobalVariableAnalogSensor extends WorldGlobalVariableSensor
| Constructor and Description |
|---|
WorldGlobalVariableAnalogSensor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getSensorPath()
Return the button path the player has to follow in which this setting is stored.
|
getAdditionalInfo, getPollFrequency, getRequiredUpgrades, needsTextBoxclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_getDescription, getAirUsage, needsGPSTool, notifyTextChangegetDescription, getTextboxIntRange, isEntityFilterpublic java.lang.String getSensorPath()
IBaseSensorgetSensorPath in interface IBaseSensorgetSensorPath in class WorldGlobalVariableSensorpublic int getRedstoneValue(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int sensorRange,
java.lang.String textBoxText)
IPollSensorSettinggetRedstoneValue in interface IPollSensorSettinggetRedstoneValue in class WorldGlobalVariableSensorworld - 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.