|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcpw.mods.fml.common.SingleIntervalHandler
public class SingleIntervalHandler
| Constructor Summary | |
|---|---|
SingleIntervalHandler(ITickHandler handler)
|
|
| Method Summary | |
|---|---|
String |
getLabel()
A profiling label for this tick handler |
int |
nextTickSpacing()
Return the number of actual ticks that will pass before your next tick will fire. |
void |
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 |
EnumSet<TickType> |
ticks()
Returns the list of ticks this tick handler is interested in receiving at the minute |
void |
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleIntervalHandler(ITickHandler handler)
| Method Detail |
|---|
public void tickStart(EnumSet<TickType> type,
Object... tickData)
ITickHandler
tickStart in interface ITickHandler
public void tickEnd(EnumSet<TickType> type,
Object... tickData)
ITickHandler
tickEnd in interface ITickHandlerpublic EnumSet<TickType> ticks()
ITickHandler
ticks in interface ITickHandlerpublic String getLabel()
ITickHandler
getLabel in interface ITickHandlerpublic int nextTickSpacing()
IScheduledTickHandler
nextTickSpacing in interface IScheduledTickHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||