public class ConstantSensor extends java.lang.Object implements IPollSensorSetting
| Constructor and Description |
|---|
ConstantSensor() |
| Modifier and Type | Method and Description |
|---|---|
void |
getAdditionalInfo(java.util.List<net.minecraft.util.text.ITextComponent> info)
Return some descriptive text to be displayed above the optional textbox
|
int |
getAirUsage(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Get the air usage for this sensor.
|
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.
|
java.util.Set<EnumUpgrade> |
getRequiredUpgrades()
Return the upgrades required by this sensor.
|
java.lang.String |
getSensorPath()
Return the button path the player has to follow in which this setting is stored.
|
net.minecraft.util.RangedInteger |
getTextboxIntRange()
For numeric textboxes (see
IBaseSensor.needsTextBox()), get the permitted numeric range. |
boolean |
needsTextBox()
Should this sensor's GUI display a text box for extra information to be entered?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_getDescription, needsGPSTool, notifyTextChangegetDescription, isEntityFilterpublic java.lang.String getSensorPath()
IBaseSensorgetSensorPath in interface IBaseSensorpublic java.util.Set<EnumUpgrade> getRequiredUpgrades()
IBaseSensorgetRequiredUpgrades in interface IBaseSensorpublic int getPollFrequency(net.minecraft.tileentity.TileEntity te)
IPollSensorSettinggetPollFrequency in interface IPollSensorSettingte - universal sensorpublic boolean needsTextBox()
IBaseSensorneedsTextBox in interface IBaseSensorpublic net.minecraft.util.RangedInteger getTextboxIntRange()
IBaseSensorIBaseSensor.needsTextBox()), get the permitted numeric range.getTextboxIntRange in interface IBaseSensorpublic int getRedstoneValue(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int sensorRange,
java.lang.String textBoxText)
IPollSensorSettinggetRedstoneValue in interface IPollSensorSettingworld - 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.public void getAdditionalInfo(java.util.List<net.minecraft.util.text.ITextComponent> info)
IBaseSensorgetAdditionalInfo in interface IBaseSensorinfo - a text component list to be appended topublic int getAirUsage(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
ISensorSettinggetAirUsage in interface ISensorSetting