Package me.bimmr.bimmcore.utils.timed
Class TimedObject
- java.lang.Object
-
- me.bimmr.bimmcore.utils.timed.TimedObject
-
- Direct Known Subclasses:
Board
,BoardLine
,Hologram
,HologramLine
,MessageDisplay
public abstract class TimedObject extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description TimedEvent
timedEvent
-
Constructor Summary
Constructors Constructor Description TimedObject()
-
Method Summary
Modifier and Type Method Description TimedEvent
getTimedEvent()
boolean
isTaskRunning()
void
onTaskRun(long time)
void
setTimedEvent(TimedEvent timedEvent)
void
setTimedEvent(TimedEvent timedEvent, boolean autoStart)
void
setTimedEvent(Timed timed, int time)
void
setTimedEvent(Timed timed, int time, boolean autoStart)
void
startTask()
void
stopTask()
-
-
-
Field Detail
-
timedEvent
public TimedEvent timedEvent
-
-
Method Detail
-
getTimedEvent
public TimedEvent getTimedEvent()
-
setTimedEvent
public void setTimedEvent(Timed timed, int time)
-
setTimedEvent
public void setTimedEvent(Timed timed, int time, boolean autoStart)
-
setTimedEvent
public void setTimedEvent(TimedEvent timedEvent)
-
setTimedEvent
public void setTimedEvent(TimedEvent timedEvent, boolean autoStart)
-
startTask
public void startTask()
-
onTaskRun
public void onTaskRun(long time)
-
stopTask
public void stopTask()
-
isTaskRunning
public boolean isTaskRunning()
-
-