public class BlockInteractSensor extends java.lang.Object implements IBlockAndCoordinateEventSensor
| Constructor and Description |
|---|
BlockInteractSensor() |
| Modifier and Type | Method and Description |
|---|---|
int |
emitRedstoneOnEvent(net.minecraftforge.eventbus.api.Event event,
net.minecraft.tileentity.TileEntity sensor,
int range,
java.util.Set<net.minecraft.util.math.BlockPos> positions)
Extended version of the normal emitRedstoneOnEvent.
|
int |
getRedstonePulseLength()
|
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 boolean needsTextBox()
IBaseSensorneedsTextBox in interface IBaseSensorpublic int emitRedstoneOnEvent(net.minecraftforge.eventbus.api.Event event,
net.minecraft.tileentity.TileEntity sensor,
int range,
java.util.Set<net.minecraft.util.math.BlockPos> positions)
IBlockAndCoordinateEventSensoremitRedstoneOnEvent in interface IBlockAndCoordinateEventSensorevent - the Forge event (one of PlayerInteractEvent, EntityItemPickupEvent or AttackEntityEvent)sensor - the Universal Sensor tile entityrange - the Universal Sensor's range, in blockspositions - When a GPS Tool is inserted this contains the position of that tool. If a GPS Area Tool is
inserted this is set of all positions in that area.public int getRedstonePulseLength()
IBlockAndCoordinateEventSensorgetRedstonePulseLength in interface IBlockAndCoordinateEventSensor