|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CreatureSpawnEvent.SpawnReason> org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason
public static enum CreatureSpawnEvent.SpawnReason
An enum to specify the type of spawning
Enum Constant Summary | |
---|---|
BED
Deprecated. No longer used |
|
BREEDING
When an animal breeds to create a child |
|
BUILD_IRONGOLEM
When an iron golem is spawned by being built |
|
BUILD_SNOWMAN
When a snowman is spawned by being built |
|
BUILD_WITHER
When a wither boss is spawned by being built |
|
CHUNK_GEN
When a creature spawns due to chunk generation |
|
CUSTOM
When a creature is spawned by plugins |
|
DEFAULT
When an entity is missing a SpawnReason |
|
EGG
When a creature spawns from an egg |
|
JOCKEY
When an entity spawns as a jockey of another entity (mostly spider jockeys) |
|
LIGHTNING
When a creature spawns because of a lightning strike |
|
NATURAL
When something spawns from natural means |
|
REINFORCEMENTS
When an entity calls for reinforcements |
|
SLIME_SPLIT
When a slime splits |
|
SPAWNER
When a creature spawns from a spawner |
|
SPAWNER_EGG
When a creature spawns from a Spawner Egg |
|
VILLAGE_DEFENSE
When an iron golem is spawned to defend a village |
|
VILLAGE_INVASION
When a zombie is spawned to invade a village |
Method Summary | |
---|---|
static CreatureSpawnEvent.SpawnReason |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CreatureSpawnEvent.SpawnReason[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CreatureSpawnEvent.SpawnReason NATURAL
public static final CreatureSpawnEvent.SpawnReason JOCKEY
public static final CreatureSpawnEvent.SpawnReason CHUNK_GEN
public static final CreatureSpawnEvent.SpawnReason SPAWNER
public static final CreatureSpawnEvent.SpawnReason EGG
public static final CreatureSpawnEvent.SpawnReason SPAWNER_EGG
public static final CreatureSpawnEvent.SpawnReason LIGHTNING
@Deprecated public static final CreatureSpawnEvent.SpawnReason BED
public static final CreatureSpawnEvent.SpawnReason BUILD_SNOWMAN
public static final CreatureSpawnEvent.SpawnReason BUILD_IRONGOLEM
public static final CreatureSpawnEvent.SpawnReason BUILD_WITHER
public static final CreatureSpawnEvent.SpawnReason VILLAGE_DEFENSE
public static final CreatureSpawnEvent.SpawnReason VILLAGE_INVASION
public static final CreatureSpawnEvent.SpawnReason BREEDING
public static final CreatureSpawnEvent.SpawnReason SLIME_SPLIT
public static final CreatureSpawnEvent.SpawnReason REINFORCEMENTS
public static final CreatureSpawnEvent.SpawnReason CUSTOM
public static final CreatureSpawnEvent.SpawnReason DEFAULT
Method Detail |
---|
public static CreatureSpawnEvent.SpawnReason[] values()
for (CreatureSpawnEvent.SpawnReason c : CreatureSpawnEvent.SpawnReason.values()) System.out.println(c);
public static CreatureSpawnEvent.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 name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |