public class WorldGlobalVariableSensor extends java.lang.Object implements IPollSensorSetting
| Constructor and Description |
|---|
WorldGlobalVariableSensor() |
| 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 |
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.
|
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, getAirUsage, needsGPSTool, notifyTextChangegetDescription, getTextboxIntRange, isEntityFilterpublic java.lang.String getSensorPath()
IBaseSensorgetSensorPath in interface IBaseSensorpublic java.util.Set<EnumUpgrade> getRequiredUpgrades()
IBaseSensorgetRequiredUpgrades in interface IBaseSensorpublic boolean needsTextBox()
IBaseSensorneedsTextBox in interface IBaseSensorpublic int getPollFrequency(net.minecraft.tileentity.TileEntity te)
IPollSensorSettinggetPollFrequency in interface IPollSensorSettingte - universal sensorpublic 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 to