public class SingleIntervalHandler extends java.lang.Object implements IScheduledTickHandler
Constructor and Description |
---|
SingleIntervalHandler(ITickHandler handler) |
Modifier and Type | Method and Description |
---|---|
java.lang.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(java.util.EnumSet<TickType> type,
java.lang.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
|
java.util.EnumSet<TickType> |
ticks()
Returns the list of ticks this tick handler is interested in receiving at the minute
|
void |
tickStart(java.util.EnumSet<TickType> type,
java.lang.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
|
public SingleIntervalHandler(ITickHandler handler)
public void tickStart(java.util.EnumSet<TickType> type, java.lang.Object... tickData)
ITickHandler
tickStart
in interface ITickHandler
public void tickEnd(java.util.EnumSet<TickType> type, java.lang.Object... tickData)
ITickHandler
tickEnd
in interface ITickHandler
public java.util.EnumSet<TickType> ticks()
ITickHandler
ticks
in interface ITickHandler
public java.lang.String getLabel()
ITickHandler
getLabel
in interface ITickHandler
public int nextTickSpacing()
IScheduledTickHandler
nextTickSpacing
in interface IScheduledTickHandler