public enum SpawnReason extends Enum<SpawnReason>
Enum Constant and Description |
---|
COMMAND |
NATURAL |
OTHER |
SPAWNER |
SUMMON |
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 NATURAL
public static final SpawnReason COMMAND
public static final SpawnReason SPAWNER
public static final SpawnReason SUMMON
public static final SpawnReason OTHER
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 © 2020. All rights reserved.