YATS/Forge Documentation
|
Public Member Functions | |
SingleIntervalHandler (ITickHandler handler) | |
void | tickStart (EnumSet< TickType > type, Object...tickData) |
void | tickEnd (EnumSet< TickType > type, Object...tickData) |
EnumSet< TickType > | ticks () |
String | getLabel () |
int | nextTickSpacing () |
cpw.mods.fml.common.SingleIntervalHandler.SingleIntervalHandler | ( | ITickHandler | handler) |
String cpw.mods.fml.common.SingleIntervalHandler.getLabel | ( | ) |
A profiling label for this tick handler
Implements cpw.mods.fml.common.ITickHandler.
int cpw.mods.fml.common.SingleIntervalHandler.nextTickSpacing | ( | ) |
Return the number of actual ticks that will pass before your next tick will fire. This will be called just after your last tick fired to compute the next delay.
Implements cpw.mods.fml.common.IScheduledTickHandler.
void cpw.mods.fml.common.SingleIntervalHandler.tickEnd | ( | EnumSet< TickType > | type, |
Object... | tickData | ||
) |
Called at the "end" phase of a tick
Multiple ticks may fire simultaneously- you will only be called once with all the firing ticks
type | |
tickData |
Implements cpw.mods.fml.common.ITickHandler.
EnumSet<TickType> cpw.mods.fml.common.SingleIntervalHandler.ticks | ( | ) |
Returns the list of ticks this tick handler is interested in receiving at the minute
Implements cpw.mods.fml.common.ITickHandler.
void cpw.mods.fml.common.SingleIntervalHandler.tickStart | ( | EnumSet< TickType > | type, |
Object... | tickData | ||
) |
Called at the "start" phase of a tick
Multiple ticks may fire simultaneously- you will only be called once with all the firing ticks
type | |
tickData |
Implements cpw.mods.fml.common.ITickHandler.