Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason Enum Reference

Public Attributes

 NATURAL
 
 JOCKEY
 
 CHUNK_GEN
 
 SPAWNER
 
 EGG
 
 SPAWNER_EGG
 
 LIGHTNING
 
 BED
 
 BUILD_SNOWMAN
 
 BUILD_IRONGOLEM
 
 BUILD_WITHER
 
 VILLAGE_DEFENSE
 
 VILLAGE_INVASION
 
 BREEDING
 
 SLIME_SPLIT
 
 REINFORCEMENTS
 
 NETHER_PORTAL
 
 DISPENSE_EGG
 
 INFECTION
 
 CURED
 
 OCELOT_BABY
 
 SILVERFISH_BLOCK
 
 MOUNT
 
 CUSTOM
 
 DEFAULT
 

Detailed Description

An enum to specify the type of spawning

Definition at line 87 of file CreatureSpawnEvent.java.

Member Data Documentation

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BED

When a creature is spawned by a player that is sleeping

Deprecated:
No longer used

Definition at line 124 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING

When an animal breeds to create a child

Definition at line 148 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BUILD_IRONGOLEM

When an iron golem is spawned by being built

Definition at line 132 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BUILD_SNOWMAN

When a snowman is spawned by being built

Definition at line 128 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BUILD_WITHER

When a wither boss is spawned by being built

Definition at line 136 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN

When a creature spawns due to chunk generation

Definition at line 101 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CURED

When a villager is cured from infection

Definition at line 172 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CUSTOM

When a creature is spawned by plugins

Definition at line 189 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT

When an entity is missing a SpawnReason

Definition at line 193 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DISPENSE_EGG

When a creature is spawned by a dispenser dispensing an egg

Definition at line 164 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.EGG

When a creature spawns from an egg

Definition at line 109 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.INFECTION

When a zombie infects a villager

Definition at line 168 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.JOCKEY

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

Definition at line 97 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.LIGHTNING

When a creature spawns because of a lightning strike

Definition at line 117 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.MOUNT

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

Definition at line 185 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL

When something spawns from natural means

Definition at line 92 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NETHER_PORTAL

When a creature is spawned by nether portal

Definition at line 160 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.OCELOT_BABY

When an ocelot has a baby spawned along with them

Definition at line 176 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.REINFORCEMENTS

When an entity calls for reinforcements

Definition at line 156 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SILVERFISH_BLOCK

When a silverfish spawns from a block

Definition at line 180 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SLIME_SPLIT

When a slime splits

Definition at line 152 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER

When a creature spawns from a spawner

Definition at line 105 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG

When a creature spawns from a Spawner Egg

Definition at line 113 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE

When an iron golem is spawned to defend a village

Definition at line 140 of file CreatureSpawnEvent.java.

org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_INVASION

When a zombie is spawned to invade a village

Definition at line 144 of file CreatureSpawnEvent.java.


The documentation for this enum was generated from the following file: