Base Event class that all other events are derived from
net.minecraftforge.event.Event.Event |
( |
) | |
|
ListenerList net.minecraftforge.event.Event.getListenerList |
( |
) | |
|
Returns a ListenerList object that contains all listeners that are registered to this event.
- Returns
- Listener List
Result net.minecraftforge.event.Event.getResult |
( |
) | |
|
Returns the value set as the result of this event
boolean net.minecraftforge.event.Event.hasResult |
( |
) | |
|
Determines if this event expects a significant result value.
boolean net.minecraftforge.event.Event.isCancelable |
( |
) | |
|
Determine if this function is cancelable at all.
- Returns
- If access to setCanceled should be allowed
boolean net.minecraftforge.event.Event.isCanceled |
( |
) | |
|
Determine if this event is canceled and should stop executing.
- Returns
- The current canceled state
void net.minecraftforge.event.Event.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.
The functionality of setting the canceled state is defined on a per-event bases.
- Parameters
-
cancel | The new canceled value |
void net.minecraftforge.event.Event.setResult |
( |
Result |
value) | |
|
Sets the result value for this event, not all events can have a result set, and any attempt to set a result for a event that isn't expecting it will result in a IllegalArgumentException.
The functionality of setting the result is defined on a per-event bases.
- Parameters
-
void net.minecraftforge.event.Event.setup |
( |
) | |
|
|
protected |
Called by the base constructor, this is used by ASM generated event classes to setup various functionality such as the listener's list.
The documentation for this class was generated from the following file:
- C:/Users/LazDude/Downloads/MinecraftModding/YATS/forge/mcp/src/minecraft/net/minecraftforge/event/Event.java