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_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.static DefaultedRegistryReference<SpawnType>
BREEDING
static DefaultedRegistryReference<SpawnType>
CHUNK_LOAD
An entity spawned due to aWorldChunk
being loaded.static DefaultedRegistryReference<SpawnType>
CUSTOM
Custom spawn type.static DefaultedRegistryReference<SpawnType>
DISPENSE
When aBlockTypes.DISPENSER
orBlockTypes.DROPPER
or equivalent spawns an entity as it's normal function of "dispensing".static DefaultedRegistryReference<SpawnType>
DROPPED_ITEM
static DefaultedRegistryReference<SpawnType>
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.static DefaultedRegistryReference<SpawnType>
FALLING_BLOCK
When a block becomes aFallingBlock
entity due to normal gravity.static DefaultedRegistryReference<SpawnType>
MOB_SPAWNER
When anEntity
is spawned as a result of aBlockTypes.SPAWNER
orSpawnerMinecart
entity performs it's normal spawning.static DefaultedRegistryReference<SpawnType>
PASSIVE
Unknown for now.static DefaultedRegistryReference<SpawnType>
PLACEMENT
When an entity is placed into the world, likely from a command.static DefaultedRegistryReference<SpawnType>
PLUGIN
An entity spawned from aplugin
, this can be for any reason as dictated by the plugin.static DefaultedRegistryReference<SpawnType>
PROJECTILE
When an entity is spawned as a projectile, either from being "thrown" or "launched".static DefaultedRegistryReference<SpawnType>
SPAWN_EGG
When an entity is spawned from any variant of spawn eggs.static DefaultedRegistryReference<SpawnType>
STRUCTURE
When an entity is spawned from a structure, usually during world/chunk generation.static DefaultedRegistryReference<SpawnType>
TNT_IGNITE
When an entity is spawned fromBlockTypes.TNT
.static DefaultedRegistryReference<SpawnType>
WEATHER
When an entity is spawned from the currentWeatherType
state of aWorld
.static DefaultedRegistryReference<SpawnType>
WORLD_SPAWNER
An 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_STONE
where aEntityTypes.SILVERFISH
may spawn.
-
BREEDING
public static final DefaultedRegistryReference<SpawnType> BREEDING
-
CHUNK_LOAD
public static final DefaultedRegistryReference<SpawnType> CHUNK_LOAD
An entity spawned due to aWorldChunk
being 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.DISPENSER
orBlockTypes.DROPPER
or 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 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
public static final DefaultedRegistryReference<SpawnType> FALLING_BLOCK
When a block becomes aFallingBlock
entity due to normal gravity.
-
MOB_SPAWNER
public static final DefaultedRegistryReference<SpawnType> MOB_SPAWNER
When anEntity
is spawned as a result of aBlockTypes.SPAWNER
orSpawnerMinecart
entity 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 currentWeatherType
state of aWorld
.
-
WORLD_SPAWNER
public static final DefaultedRegistryReference<SpawnType> WORLD_SPAWNER
An entity spawned from the normal world spawner (natural spawning).
-
-