public interface IEventSensorSetting extends ISensorSetting
| Modifier and Type | Method and Description |
|---|---|
int |
emitRedstoneOnEvent(net.minecraftforge.eventbus.api.Event event,
net.minecraft.tileentity.TileEntity sensor,
int range,
java.lang.String textboxText)
This method is called when a Forge event of interest is triggered.
|
int |
getRedstonePulseLength()
How long should an emitted pulse last for? 5 ticks is a suitable value.
|
_getDescription, getAirUsage, needsGPSTool, notifyTextChangegetAdditionalInfo, getDescription, getRequiredUpgrades, getSensorPath, getTextboxIntRange, isEntityFilter, needsTextBoxint emitRedstoneOnEvent(net.minecraftforge.eventbus.api.Event event,
net.minecraft.tileentity.TileEntity sensor,
int range,
java.lang.String textboxText)
PlayerInteractEventEntityItemPickupEventAttackEntityEventevent - the Forge event (one of PlayerInteractEvent, EntityItemPickupEvent or AttackEntityEvent)sensor - the Universal Sensor tile entityrange - the Universal Sensor's range, in blockstextboxText - any text which was entered in the sensor configuration's textfieldint getRedstonePulseLength()