Class SpawnTypes
- java.lang.Object
-
- org.spongepowered.api.event.cause.entity.SpawnTypes
-
public final class SpawnTypes extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<SpawnType>BLOCK_SPAWNINGThis is the equivalent to when a block break causes a normal entity to spawn, such asBlockTypes.INFESTED_STONEwhere aEntityTypes.SILVERFISHmay spawn.static DefaultedRegistryReference<SpawnType>BREEDINGstatic DefaultedRegistryReference<SpawnType>CHUNK_LOADAn entity spawned due to aWorldChunkbeing loaded.static DefaultedRegistryReference<SpawnType>CUSTOMCustom spawn type.static DefaultedRegistryReference<SpawnType>DISPENSEWhen aBlockTypes.DISPENSERorBlockTypes.DROPPERor equivalent spawns an entity as it's normal function of "dispensing".static DefaultedRegistryReference<SpawnType>DROPPED_ITEMstatic DefaultedRegistryReference<SpawnType>EXPERIENCEWhen anExperienceOrbis spawned as a result of a "reward" from anEntitygranting experience for the kill, or aTradergranting experience for a successful trade, or a block being mined.static DefaultedRegistryReference<SpawnType>FALLING_BLOCKWhen a block becomes aFallingBlockentity due to normal gravity.static DefaultedRegistryReference<SpawnType>MOB_SPAWNERWhen anEntityis spawned as a result of aBlockTypes.SPAWNERorSpawnerMinecartentity performs it's normal spawning.static DefaultedRegistryReference<SpawnType>PASSIVEUnknown for now.static DefaultedRegistryReference<SpawnType>PLACEMENTWhen an entity is placed into the world, likely from a command.static DefaultedRegistryReference<SpawnType>PLUGINAn entity spawned from aplugin, this can be for any reason as dictated by the plugin.static DefaultedRegistryReference<SpawnType>PROJECTILEWhen an entity is spawned as a projectile, either from being "thrown" or "launched".static DefaultedRegistryReference<SpawnType>SPAWN_EGGWhen an entity is spawned from any variant of spawn eggs.static DefaultedRegistryReference<SpawnType>STRUCTUREWhen an entity is spawned from a structure, usually during world/chunk generation.static DefaultedRegistryReference<SpawnType>TNT_IGNITEWhen an entity is spawned fromBlockTypes.TNT.static DefaultedRegistryReference<SpawnType>WEATHERWhen an entity is spawned from the currentWeatherTypestate of aWorld.static DefaultedRegistryReference<SpawnType>WORLD_SPAWNERAn entity spawned from the normal world spawner (natural spawning).
-
-
-
Field Detail
-
BLOCK_SPAWNING
public static final DefaultedRegistryReference<SpawnType> BLOCK_SPAWNING
This is the equivalent to when a block break causes a normal entity to spawn, such asBlockTypes.INFESTED_STONEwhere aEntityTypes.SILVERFISHmay spawn.
-
BREEDING
public static final DefaultedRegistryReference<SpawnType> BREEDING
-
CHUNK_LOAD
public static final DefaultedRegistryReference<SpawnType> CHUNK_LOAD
An entity spawned due to aWorldChunkbeing loaded.
-
CUSTOM
public static final DefaultedRegistryReference<SpawnType> CUSTOM
Custom spawn type. Usually, Sponge can decipher the spawn type but in some cases, the type is just unknown.
-
DISPENSE
public static final DefaultedRegistryReference<SpawnType> DISPENSE
When aBlockTypes.DISPENSERorBlockTypes.DROPPERor equivalent spawns an entity as it's normal function of "dispensing".
-
DROPPED_ITEM
public static final DefaultedRegistryReference<SpawnType> DROPPED_ITEM
-
EXPERIENCE
public static final DefaultedRegistryReference<SpawnType> EXPERIENCE
When anExperienceOrbis spawned as a result of a "reward" from anEntitygranting experience for the kill, or aTradergranting experience for a successful trade, or a block being mined.
-
FALLING_BLOCK
public static final DefaultedRegistryReference<SpawnType> FALLING_BLOCK
When a block becomes aFallingBlockentity due to normal gravity.
-
MOB_SPAWNER
public static final DefaultedRegistryReference<SpawnType> MOB_SPAWNER
When anEntityis spawned as a result of aBlockTypes.SPAWNERorSpawnerMinecartentity performs it's normal spawning.
-
PASSIVE
public static final DefaultedRegistryReference<SpawnType> PASSIVE
Unknown for now.
-
PLACEMENT
public static final DefaultedRegistryReference<SpawnType> PLACEMENT
When an entity is placed into the world, likely from a command.
-
PLUGIN
public static final DefaultedRegistryReference<SpawnType> PLUGIN
An entity spawned from aplugin, this can be for any reason as dictated by the plugin.
-
PROJECTILE
public static final DefaultedRegistryReference<SpawnType> PROJECTILE
When an entity is spawned as a projectile, either from being "thrown" or "launched".
-
SPAWN_EGG
public static final DefaultedRegistryReference<SpawnType> SPAWN_EGG
When an entity is spawned from any variant of spawn eggs.
-
STRUCTURE
public static final DefaultedRegistryReference<SpawnType> STRUCTURE
When an entity is spawned from a structure, usually during world/chunk generation.
-
TNT_IGNITE
public static final DefaultedRegistryReference<SpawnType> TNT_IGNITE
When an entity is spawned fromBlockTypes.TNT.
-
WEATHER
public static final DefaultedRegistryReference<SpawnType> WEATHER
When an entity is spawned from the currentWeatherTypestate of aWorld.
-
WORLD_SPAWNER
public static final DefaultedRegistryReference<SpawnType> WORLD_SPAWNER
An entity spawned from the normal world spawner (natural spawning).
-
-