public static enum CreatureSpawnEvent.SpawnReason extends Enum<CreatureSpawnEvent.SpawnReason>
Enum Constant and Description |
---|
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
|
CURED
When a villager is cured from infection
|
CUSTOM
When a creature is spawned by plugins
|
DEFAULT
When an entity is missing a SpawnReason
|
DISPENSE_EGG
When a creature is spawned by a dispenser dispensing an egg
|
EGG
When a creature spawns from an egg
|
ENDER_PEARL
When an entity is spawned as a result of ender pearl usage
|
INFECTION
When a zombie infects a villager
|
JOCKEY
When an entity spawns as a jockey of another entity (mostly spider
jockeys)
|
LIGHTNING
When a creature spawns because of a lightning strike
|
MOUNT
When an entity spawns as a mount of another entity (mostly chicken
jockeys)
|
NATURAL
When something spawns from natural means
|
NETHER_PORTAL
When a creature is spawned by nether portal
|
OCELOT_BABY
When an ocelot has a baby spawned along with them
|
REINFORCEMENTS
When an entity calls for reinforcements
|
SHOULDER_ENTITY
When an entity is spawned as a result of the entity it is being
perched on jumping or being damaged
|
SILVERFISH_BLOCK
When a silverfish spawns from a block
|
SLIME_SPLIT
When a slime splits
|
SPAWNER
When a creature spawns from a spawner
|
SPAWNER_EGG
When a creature spawns from a Spawner Egg
|
TRAP
When an entity spawns as a trap for players approaching
|
VILLAGE_DEFENSE
When an iron golem is spawned to defend a village
|
VILLAGE_INVASION
When a zombie is spawned to invade a village
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 NETHER_PORTAL
public static final CreatureSpawnEvent.SpawnReason DISPENSE_EGG
public static final CreatureSpawnEvent.SpawnReason INFECTION
public static final CreatureSpawnEvent.SpawnReason CURED
public static final CreatureSpawnEvent.SpawnReason OCELOT_BABY
public static final CreatureSpawnEvent.SpawnReason SILVERFISH_BLOCK
public static final CreatureSpawnEvent.SpawnReason MOUNT
public static final CreatureSpawnEvent.SpawnReason TRAP
public static final CreatureSpawnEvent.SpawnReason ENDER_PEARL
public static final CreatureSpawnEvent.SpawnReason SHOULDER_ENTITY
public static final CreatureSpawnEvent.SpawnReason CUSTOM
public static final CreatureSpawnEvent.SpawnReason DEFAULT
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 nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.