YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
cpw.mods.fml.common.SingleIntervalHandler Class Reference
Inheritance diagram for cpw.mods.fml.common.SingleIntervalHandler:
cpw.mods.fml.common.IScheduledTickHandler cpw.mods.fml.common.ITickHandler

Public Member Functions

 SingleIntervalHandler (ITickHandler handler)
 
void tickStart (EnumSet< TickType > type, Object...tickData)
 
void tickEnd (EnumSet< TickType > type, Object...tickData)
 
EnumSet< TickTypeticks ()
 
String getLabel ()
 
int nextTickSpacing ()
 

Constructor & Destructor Documentation

cpw.mods.fml.common.SingleIntervalHandler.SingleIntervalHandler ( ITickHandler  handler)

Member Function Documentation

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.

Returns
Time until next tick

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

Parameters
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

Parameters
type
tickData

Implements cpw.mods.fml.common.ITickHandler.


The documentation for this class was generated from the following file: