|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraftforge.event.Event
public class Event
Base Event class that all other events are derived from
Nested Class Summary | |
---|---|
static class |
Event.Result
|
Constructor Summary | |
---|---|
Event()
|
Method Summary | |
---|---|
ListenerList |
getListenerList()
Returns a ListenerList object that contains all listeners that are registered to this event. |
boolean |
isCancelable()
Determine if this function is cancelable at all. |
boolean |
isCanceled()
Determine if this event is canceled and should stop executing. |
void |
setCanceled(boolean cancel)
Sets the state of this event, not all events are cancelable, and any attempt to cancel a event that can't be will result in a IllegalArgumentException. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Event()
Method Detail |
---|
public boolean isCancelable()
public boolean isCanceled()
public void setCanceled(boolean cancel)
cancel
- The new canceled valuepublic ListenerList getListenerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |