Class SpawnTypes
java.lang.Object
org.spongepowered.api.event.cause.entity.SpawnTypes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DefaultedRegistryReference<SpawnType>
This is the equivalent to when a block break causes a normal entity to spawn, such asBlockTypes.INFESTED_STONE
where aEntityTypes.SILVERFISH
may spawn.static final DefaultedRegistryReference<SpawnType>
static final DefaultedRegistryReference<SpawnType>
An entity spawned due to aWorldChunk
being loaded.static final DefaultedRegistryReference<SpawnType>
Custom spawn type.static final DefaultedRegistryReference<SpawnType>
When aBlockTypes.DISPENSER
orBlockTypes.DROPPER
or equivalent spawns an entity as it's normal function of "dispensing".static final DefaultedRegistryReference<SpawnType>
static final DefaultedRegistryReference<SpawnType>
When anExperienceOrb
is spawned as a result of a "reward" from anEntity
granting experience for the kill, or aTrader
granting experience for a successful trade, or a block being mined.static final DefaultedRegistryReference<SpawnType>
When a block becomes aFallingBlock
entity due to normal gravity.static final DefaultedRegistryReference<SpawnType>
When anEntity
is spawned as a result of aBlockTypes.SPAWNER
orSpawnerMinecart
entity 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 currentWeatherType
state 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_STONE
where aEntityTypes.SILVERFISH
may spawn. -
BREEDING
-
CHUNK_LOAD
An entity spawned due to aWorldChunk
being loaded. -
CUSTOM
Custom spawn type. Usually, Sponge can decipher the spawn type but in some cases, the type is just unknown. -
DISPENSE
When aBlockTypes.DISPENSER
orBlockTypes.DROPPER
or equivalent spawns an entity as it's normal function of "dispensing". -
DROPPED_ITEM
-
EXPERIENCE
When anExperienceOrb
is spawned as a result of a "reward" from anEntity
granting experience for the kill, or aTrader
granting experience for a successful trade, or a block being mined. -
FALLING_BLOCK
When a block becomes aFallingBlock
entity due to normal gravity. -
MOB_SPAWNER
When anEntity
is spawned as a result of aBlockTypes.SPAWNER
orSpawnerMinecart
entity 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 currentWeatherType
state of aWorld
. -
WORLD_SPAWNER
An entity spawned from the normal world spawner (natural spawning).
-
-
Method Details
-
registry
-