public class BlockComparatorSensor extends java.lang.Object implements IBlockAndCoordinatePollSensor
| Constructor and Description |
|---|
BlockComparatorSensor() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, waitgetAdditionalInfo, getDescription, getTextboxIntRange, 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 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.