|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cliffblaster.game.api.event.Event
public abstract class Event
Nested Class Summary | |
---|---|
static class |
Event.Priority
The order in which an EventListener will be called. |
static class |
Event.Type
Specify the type of event Do not ever use ordinal(), instead use valueOf, names are permanent |
Field Summary | |
---|---|
protected Event.Type |
evtType
|
Constructor Summary | |
---|---|
Event()
|
Method Summary | |
---|---|
void |
cancel()
Sets the event as cancelled. |
Event.Type |
getType()
|
boolean |
isCancelled()
Returns cancel() was called on the event. |
void |
unCancel()
Un-Cancel's the event if a previous listener called cancel() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Event.Type evtType
Constructor Detail |
---|
public Event()
Method Detail |
---|
public void cancel()
public void unCancel()
cancel()
. The
event will continue on the server as usual, unless a subsequent plug-in
calls cancel() on the event.
public boolean isCancelled()
cancel()
was called on the event.
public Event.Type getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |