public class EntityInRangeSensor
extends java.lang.Object
| Constructor and Description |
|---|
EntityInRangeSensor() |
| 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
|
java.lang.Class<? extends net.minecraft.entity.Entity> |
getEntityTracked() |
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(java.util.List<net.minecraft.entity.Entity> entities,
java.lang.String textboxText) |
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 |
isEntityFilter()
If a textbox is to be displyed (see
IBaseSensor.needsTextBox()), is this textbox for an entity filter? |
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, getTextboxIntRangepublic java.lang.String getSensorPath()
IBaseSensorpublic boolean needsTextBox()
IBaseSensorpublic boolean isEntityFilter()
IBaseSensorIBaseSensor.needsTextBox()), is this textbox for an entity filter?public int getRedstoneValue(java.util.List<net.minecraft.entity.Entity> entities,
java.lang.String textboxText)
public java.lang.Class<? extends net.minecraft.entity.Entity> getEntityTracked()
public void getAdditionalInfo(java.util.List<net.minecraft.util.text.ITextComponent> info)
IBaseSensorinfo - a text component list to be appended topublic java.util.Set<EnumUpgrade> getRequiredUpgrades()
IBaseSensorgetRequiredUpgrades 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.