|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PortalCreateEvent.CreateReason> org.bukkit.event.world.PortalCreateEvent.CreateReason
public static enum PortalCreateEvent.CreateReason
An enum to specify the various reasons for a portal's creation
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PortalCreateEvent.CreateReason FIRE
public static final PortalCreateEvent.CreateReason OBC_DESTINATION
Method Detail |
---|
public static final 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 name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |