public enum SpawnReason extends Enum<SpawnReason>
Enum Constant and Description |
---|
CHUNK_LOAD |
COMMAND |
CREATE |
PLUGIN |
RESPAWN |
TIMED_RESPAWN |
Modifier and Type | Method and Description |
---|---|
static SpawnReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpawnReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpawnReason CHUNK_LOAD
public static final SpawnReason COMMAND
public static final SpawnReason CREATE
public static final SpawnReason PLUGIN
public static final SpawnReason RESPAWN
public static final SpawnReason TIMED_RESPAWN
public static SpawnReason[] values()
for (SpawnReason c : SpawnReason.values()) System.out.println(c);
public static SpawnReason 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 © 2021. All rights reserved.