public static enum PortalCreateEvent.CreateReason extends Enum<PortalCreateEvent.CreateReason>
Enum Constant and Description |
---|
FIRE
When a portal is created 'traditionally' due to a portal frame
being set on fire.
|
OBC_DESTINATION
When a portal is created as a destination for an existing portal
when using the custom PortalTravelAgent
|
Modifier and Type | Method and Description |
---|---|
static PortalCreateEvent.CreateReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortalCreateEvent.CreateReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortalCreateEvent.CreateReason FIRE
public static final PortalCreateEvent.CreateReason OBC_DESTINATION
public static PortalCreateEvent.CreateReason[] values()
for (PortalCreateEvent.CreateReason c : PortalCreateEvent.CreateReason.values()) System.out.println(c);
public static PortalCreateEvent.CreateReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.