Package me.bimmr.bimmcore.utils.timed
Class TimedEvent
- java.lang.Object
-
- me.bimmr.bimmcore.utils.timed.TimedEvent
-
- All Implemented Interfaces:
java.lang.Cloneable
public abstract class TimedEvent extends java.lang.Object implements java.lang.Cloneable
Created by Randy on 05/23/16.
-
-
Constructor Summary
Constructors Constructor Description TimedEvent(int ticks)
Instantiates a new Timed event.TimedEvent(int ticks, java.lang.Object attachedObject)
Instantiates a new Timed event.
-
Method Summary
Modifier and Type Method Description TimedEvent
clone()
java.lang.Object
getAttachedObject()
Get the object this TimedEvent is attached toint
getTicks()
Get the ticksabstract void
run()
Run.void
setAttachedObject(java.lang.Object attachedObject)
Set the attached objectvoid
setTicks(int ticks)
Set the ticks
-
-
-
Method Detail
-
getAttachedObject
public java.lang.Object getAttachedObject()
Get the object this TimedEvent is attached to- Returns:
- attached object
-
setAttachedObject
public void setAttachedObject(java.lang.Object attachedObject)
Set the attached object- Parameters:
attachedObject
- the attached object
-
getTicks
public int getTicks()
Get the ticks- Returns:
- ticks
-
setTicks
public void setTicks(int ticks)
Set the ticks- Parameters:
ticks
- the ticks
-
run
public abstract void run()
Run.
-
clone
public TimedEvent clone()
-
-