public enum TeleportResult extends java.lang.Enum<TeleportResult>
Enum Constant and Description |
---|
FAIL_CANCELLED |
FAIL_NO_LOCATION |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccessful() |
static TeleportResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TeleportResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TeleportResult SUCCESS
public static final TeleportResult FAIL_NO_LOCATION
public static final TeleportResult FAIL_CANCELLED
public static TeleportResult[] values()
for (TeleportResult c : TeleportResult.values()) System.out.println(c);
public static TeleportResult 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 boolean isSuccessful()