Package com.runemate.game.events
Class GameEventHandler
- java.lang.Object
-
- com.runemate.game.events.GameEventHandler
-
- All Implemented Interfaces:
GameEvents.GameEvent
,java.lang.Runnable
- Direct Known Subclasses:
EventNpcDismisser
,GenieHandler
,InactivityShutdownFailsafe
,InterfaceCloser
,OSRSBankPin
,OSRSLobbyHandler
,OSRSLoginHandler
,OSRSUnexpectedItemHandler
public abstract class GameEventHandler extends java.lang.Object implements java.lang.Runnable, GameEvents.GameEvent
-
-
Field Summary
Fields Modifier and Type Field Description static int
PRIORITY_HIGH
static int
PRIORITY_LOW
static int
PRIORITY_NORMAL
-
Constructor Summary
Constructors Constructor Description GameEventHandler()
GameEventHandler(int priority)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActivationText()
abstract GameEvents.GameEvent
getAPIEventInstance()
java.lang.String
getName()
int
getPriority()
abstract boolean
isValid()
void
onStart()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.runemate.game.api.hybrid.GameEvents.GameEvent
areTrayNotificationsEnabled, areTrayNotificationsEnabled, disable, disable, disableTrayNotifications, disableTrayNotifications, enable, enable, enableTrayNotifications, enableTrayNotifications, getChild, getChild, getChildren, getChildren, isEnabled, isEnabled
-
-
-
-
Field Detail
-
PRIORITY_LOW
public static final int PRIORITY_LOW
- See Also:
- Constant Field Values
-
PRIORITY_NORMAL
public static final int PRIORITY_NORMAL
- See Also:
- Constant Field Values
-
PRIORITY_HIGH
public static final int PRIORITY_HIGH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
public final int getPriority()
-
getAPIEventInstance
public abstract GameEvents.GameEvent getAPIEventInstance()
-
isValid
public abstract boolean isValid()
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceGameEvents.GameEvent
-
getActivationText
public java.lang.String getActivationText()
-
onStart
public void onStart()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-