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.CloneableCreated 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 TimedEventclone()java.lang.ObjectgetAttachedObject()Get the object this TimedEvent is attached tointgetTicks()Get the ticksabstract voidrun()Run.voidsetAttachedObject(java.lang.Object attachedObject)Set the attached objectvoidsetTicks(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()
-
-