public interface IGridTickable
Modifier and Type | Method and Description |
---|---|
TickingRequest |
getTickingRequest(IGridNode node)
You can return null, if you wish to tick using MC's ticking mechanism, or
you can return a valid TickingRequest to tell AE a guide for which type
of responsiveness your device wants.
|
TickRateModulation |
tickingRequest(IGridNode node,
int TicksSinceLastCall)
AE lets you adjust your tick rate based on the results of your tick, if
your block as accomplished work you may wish to increase the ticking
speed, if your block is idle you may wish to slow it down.
|
TickingRequest getTickingRequest(IGridNode node)
this will be called for your tile any time your tile changes grids, this can happen at any time, so if your using the sleep feature you may wish to preserve your sleep, in the result of this method. or you can simply reset it.
TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall)
Its up to you.
Note: this is never called if you return null from getTickingRequest.
TicksSinceLastCall
- the number of world ticks that were skipped since your last
tick, you can use this to adjust speed of processing or adjust
your tick rate.