Serializable
, Comparable<PortalType>
public enum PortalType extends Enum<PortalType>
Enum Constant | Description |
---|---|
CUSTOM |
This is a custom Plugin portal.
|
ENDER |
This is an Ender portal.
|
NETHER |
This is a Nether portal, made of obsidian.
|
Modifier and Type | Method | Description |
---|---|---|
static PortalType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static PortalType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortalType NETHER
public static final PortalType ENDER
public static final PortalType CUSTOM
public static PortalType[] values()
for (PortalType c : PortalType.values()) System.out.println(c);
public static PortalType 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 © 2020. All rights reserved.