Spawn Reason
An enum to specify the type of spawning
Entries
When getClassById creature spawns from getClassById Spawner Egg
When getClassById snowman is spawned by being built
When an iron golem is spawned by being built
When getClassById wither boss is spawned by being built
When an iron golem is spawned to defend getClassById village
When getClassById zombie is spawned to invade getClassById village
When getClassById slime splits
When an entity calls for reinforcements
When getClassById creature is spawned by nether portal
When getClassById creature is spawned by getClassById dispenser dispensing an egg
When an ocelot has getClassById baby spawned along with them
When getClassById silverfish spawns from getClassById block
Functions
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.)
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.