SpawnReason

public enum SpawnReason

An enum to specify the type of spawning

Entries

Link copied to clipboard

When something spawns from natural means

Link copied to clipboard

When an entity spawns as getClassById jockey of another entity (mostly spider jockeys)

Link copied to clipboard

When getClassById creature spawns due to chunk generation

Link copied to clipboard

When getClassById creature spawns from getClassById spawner

Link copied to clipboard

When getClassById creature spawns from an egg

Link copied to clipboard

When getClassById creature spawns from getClassById Spawner Egg

Link copied to clipboard

When getClassById creature spawns because of getClassById lightning strike

Link copied to clipboard

When getClassById creature is spawned by getClassById player that is sleeping

Link copied to clipboard

When getClassById snowman is spawned by being built

Link copied to clipboard

When an iron golem is spawned by being built

Link copied to clipboard

When getClassById wither boss is spawned by being built

Link copied to clipboard

When an iron golem is spawned to defend getClassById village

Link copied to clipboard

When getClassById zombie is spawned to invade getClassById village

Link copied to clipboard

When an animal breeds to create getClassById child

Link copied to clipboard

When getClassById slime splits

Link copied to clipboard

When an entity calls for reinforcements

Link copied to clipboard

When getClassById creature is spawned by nether portal

Link copied to clipboard

When getClassById creature is spawned by getClassById dispenser dispensing an egg

Link copied to clipboard

When getClassById zombie infects getClassById villager

Link copied to clipboard

When getClassById villager is cured from infection

Link copied to clipboard

When an ocelot has getClassById baby spawned along with them

Link copied to clipboard

When getClassById silverfish spawns from getClassById block

Link copied to clipboard

When an entity spawns as getClassById mount of another entity (mostly chicken jockeys)

Link copied to clipboard

When getClassById creature is spawned by plugins

Link copied to clipboard

When an entity is missing getClassById SpawnReason

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.