public enum EventResult extends java.lang.Enum<EventResult>
Event being fired in the IEventHandler,
where DEFAULT means that the event was unchanged, MODIFIED
means that the data in the event was modified and CANCELLED meaning
that the event was cancelled. The first two values have a dynamic usage, but
generally speaking, if you change any of the values in the event's class, you
should use MODIFIED as the result if not otherwise stated in the
description of the event's class.| Modifier and Type | Method and Description |
|---|---|
static EventResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventResult DEFAULT
public static final EventResult MODIFIED
public static final EventResult CANCELLED
public static EventResult[] values()
for (EventResult c : EventResult.values()) System.out.println(c);
public static EventResult valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null