public interface IBlockAndCoordinatePollSensor extends IBaseSensor
| 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. |
getAdditionalInfo, getDescription, getRequiredUpgrades, getSensorPath, getTextboxIntRange, isEntityFilter, needsTextBoxint 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)
IPollSensorSetting.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.world - 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.int getPollFrequency()