public enum GuiEventOrigin extends java.lang.Enum<GuiEventOrigin>
| Enum Constant and Description |
|---|
ANY |
DIRECT_CHILD |
PARENT |
SELF |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isOrigin(IGuiElement origin,
IGuiElement element) |
static GuiEventOrigin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GuiEventOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GuiEventOrigin ANY
public static final GuiEventOrigin SELF
public static final GuiEventOrigin PARENT
public static final GuiEventOrigin DIRECT_CHILD
public static GuiEventOrigin[] values()
for (GuiEventOrigin c : GuiEventOrigin.values()) System.out.println(c);
public static GuiEventOrigin 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 nullpublic abstract boolean isOrigin(IGuiElement origin, @Nullable IGuiElement element)