public class BlockHeatSensor extends java.lang.Object implements IBlockAndCoordinatePollSensor
| Constructor and Description |
|---|
BlockHeatSensor() |
| 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()
|
int |
getRedstoneValue(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int sensorRange,
java.lang.String textBoxText,
java.util.Set<net.minecraft.util.math.BlockPos> positions)
Similar to
IPollSensorSetting.getRedstoneValue(World, BlockPos, int, String), but this has the GPS tracked
coordinates as extra parameters. |
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, waitgetDescription, isEntityFilterpublic java.lang.String getSensorPath()
IBaseSensorgetSensorPath in interface IBaseSensorpublic java.util.Set<EnumUpgrade> getRequiredUpgrades()
IBaseSensorgetRequiredUpgrades in interface IBaseSensorpublic int getPollFrequency()
IBlockAndCoordinatePollSensorgetPollFrequency in interface IBlockAndCoordinatePollSensorpublic 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,
java.util.Set<net.minecraft.util.math.BlockPos> positions)
IBlockAndCoordinatePollSensorIPollSensorSetting.getRedstoneValue(World, BlockPos, int, String), but this has the GPS tracked
coordinates as extra parameters. This method will only invoke with a valid GPS tool, and when all the coordinates
are within range.getRedstoneValue in interface IBlockAndCoordinatePollSensorworld - the sensor's worldpos - the sensor's positionsensorRange - the sensor's current range, based on installed range upgradestextBoxText - text in the sensor GUI's textbox (may be an empty string)positions - When only one GPS Tool is inserted this contains the position of just that tool. If two GPS Tools are inserted, These are both corners of a box, and every coordinate in this box is added to the positions argument.public void getAdditionalInfo(java.util.List<net.minecraft.util.text.ITextComponent> info)
IBaseSensorgetAdditionalInfo in interface IBaseSensorinfo - a text component list to be appended to