Class SpawnTypes
java.lang.Object
org.spongepowered.api.event.cause.entity.SpawnTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultedRegistryReference<SpawnType> This is the equivalent to when a block break causes a normal entity to spawn, such asBlockTypes.INFESTED_STONEwhere aEntityTypes.SILVERFISHmay spawn.static final DefaultedRegistryReference<SpawnType> static final DefaultedRegistryReference<SpawnType> An entity spawned due to aWorldChunkbeing loaded.static final DefaultedRegistryReference<SpawnType> Custom spawn type.static final DefaultedRegistryReference<SpawnType> When aBlockTypes.DISPENSERorBlockTypes.DROPPERor equivalent spawns an entity as it's normal function of "dispensing".static final DefaultedRegistryReference<SpawnType> static final DefaultedRegistryReference<SpawnType> 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.static final DefaultedRegistryReference<SpawnType> When a block becomes aFallingBlockentity due to normal gravity.static final DefaultedRegistryReference<SpawnType> When anEntityis spawned as a result of aBlockTypes.SPAWNERorSpawnerMinecartentity performs it's normal spawning.static final DefaultedRegistryReference<SpawnType> Unknown for now.static final DefaultedRegistryReference<SpawnType> When an entity is placed into the world, likely from a command.static final DefaultedRegistryReference<SpawnType> An entity spawned from aplugin, this can be for any reason as dictated by the plugin.static final DefaultedRegistryReference<SpawnType> When an entity is spawned as a projectile, either from being "thrown" or "launched".static final DefaultedRegistryReference<SpawnType> When an entity is spawned from any variant of spawn eggs.static final DefaultedRegistryReference<SpawnType> When an entity is spawned from a structure, usually during world/chunk generation.static final DefaultedRegistryReference<SpawnType> When an entity is spawned fromBlockTypes.TNT.static final DefaultedRegistryReference<SpawnType> When an entity is spawned from the currentWeatherTypestate of aWorld.static final DefaultedRegistryReference<SpawnType> An entity spawned from the normal world spawner (natural spawning). -
Method Summary
-
Field Details
-
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
-
CHUNK_LOAD
An entity spawned due to aWorldChunkbeing loaded. -
CUSTOM
Custom spawn type. Usually, Sponge can decipher the spawn type but in some cases, the type is just unknown. -
DISPENSE
When aBlockTypes.DISPENSERorBlockTypes.DROPPERor equivalent spawns an entity as it's normal function of "dispensing". -
DROPPED_ITEM
-
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
When a block becomes aFallingBlockentity due to normal gravity. -
MOB_SPAWNER
When anEntityis spawned as a result of aBlockTypes.SPAWNERorSpawnerMinecartentity performs it's normal spawning. -
PASSIVE
Unknown for now. -
PLACEMENT
When an entity is placed into the world, likely from a command. -
PLUGIN
An entity spawned from aplugin, this can be for any reason as dictated by the plugin. -
PROJECTILE
When an entity is spawned as a projectile, either from being "thrown" or "launched". -
SPAWN_EGG
When an entity is spawned from any variant of spawn eggs. -
STRUCTURE
When an entity is spawned from a structure, usually during world/chunk generation. -
TNT_IGNITE
When an entity is spawned fromBlockTypes.TNT. -
WEATHER
When an entity is spawned from the currentWeatherTypestate of aWorld. -
WORLD_SPAWNER
An entity spawned from the normal world spawner (natural spawning).
-
-
Method Details
-
registry
-