public class BundledRedstoneOutputChangedEvent
extends net.minecraftforge.fml.common.eventhandler.Event
MinecraftForge.EVENT_BUS
when the bundled output of a BundledRedstone capable module changes.
This will then be forwarded to all present bundled redstone APIs to allow
reacting to the new values; this means the module should be in a state where
querying BundledRedstone.getBundledRedstoneOutput(int) will already
return the new value.| Constructor and Description |
|---|
BundledRedstoneOutputChangedEvent(BundledRedstone module,
int channel) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChannel()
The channel of which the signal changed.
|
BundledRedstone |
getModule()
The module of which the output changed.
|
public BundledRedstoneOutputChangedEvent(BundledRedstone module, int channel)
public BundledRedstone getModule()
public int getChannel()
A negative value indicates that all channels need to be checked, since multiple channels may have changed.