java.lang.Comparable<TickClient>
StdTickClient
public interface TickClient extends java.lang.Comparable<TickClient>
Modifier and Type | Method | Description |
---|---|---|
Tickable |
getClientObject() |
Returns the ticking object that this client encapsulates
|
int |
getCurrentTickDown() |
Returns the number of ticks remaining before the internal object is
allowed to get thread time.
|
long |
getLastStartTime() |
Returns the time, in ms, that this object last ticked.
|
long |
getLastStopTime() |
Returns the time, in ms, that this object last stopped ticking.
|
long |
getMilliTotal() |
Returns the number of ms that this object has ticked in total
|
java.lang.String |
getName() |
Returns the name of this ticking client as a
displayable String, usually just a translation
of the
Tickable.name() |
java.lang.String |
getStatus() |
Returns the status of this ticking client as a
displayable String, usually just a translation
of the
Tickable.getTickStatus() |
int |
getTickID() |
Returns the TICKID_ constant assigned to this object
|
long |
getTickTotal() |
Returns the number of times that this object has ticked in total
|
long |
getTimeMSToNextTick() |
Gets the number of total milliseconds before another tick
will occur., or -1.
|
int |
getTotalTickDown() |
Returns the number of ticks total before the internal object is
allowed to get thread time.
|
boolean |
isAwake() |
Returns true if this is currently getting thread time
|
boolean |
isSuspended() |
Returns true if this object is currently suspended
|
void |
setCurrentTickDownPending() |
Sets the number of ticks remaining before the internal object is
allowed to get thread time to 1.
|
void |
setStatus(java.lang.String status) |
Sets the status of this ticking client as a
displayable String
|
void |
setSuspended(boolean trueFalse) |
Sets whether this object is suspended from getting thread time
|
boolean |
tickTicker(boolean forceTickDown) |
Potentially allows the internal object to be ticked.
|
Tickable getClientObject()
Tickable
int getTickID()
Tickable.TICKID_AREA
java.lang.String getStatus()
Tickable.getTickStatus()
Tickable.getTickStatus()
java.lang.String getName()
Tickable.name()
void setStatus(java.lang.String status)
status
- the new status to set this client togetStatus()
boolean tickTicker(boolean forceTickDown)
forceTickDown
- true to override the currentTickDownTickable.tick(Tickable, int)
long getLastStartTime()
long getLastStopTime()
long getMilliTotal()
long getTickTotal()
boolean isAwake()
boolean isSuspended()
void setSuspended(boolean trueFalse)
trueFalse
- true to suspend it, false to unsuspend itint getTotalTickDown()
int getCurrentTickDown()
void setCurrentTickDownPending()
long getTimeMSToNextTick()