public final class SpawnTypes extends Object
Modifier and Type | Field and Description |
---|---|
static SpawnType |
BLOCK_SPAWNING
This is the equivalent to when a block break causes a normal entity to
spawn, such as
BlockTypes.MONSTER_EGG where a
EntityTypes.SILVERFISH may spawn. |
static SpawnType |
BREEDING
|
static SpawnType |
CHUNK_LOAD
An entity spawned due to a
Chunk being loaded. |
static SpawnType |
CUSTOM
Custom spawn type.
|
static SpawnType |
DISPENSE
When a
BlockTypes.DISPENSER or BlockTypes.DROPPER or
equivalent spawns an entity as it's normal function of "dispensing". |
static SpawnType |
DROPPED_ITEM
|
static SpawnType |
EXPERIENCE
When an
ExperienceOrb is spawned as a result of a "reward" from
an Entity granting experience for the kill, or a Villager
granting experience for a successful trade, or a block being mined. |
static SpawnType |
FALLING_BLOCK
When a block becomes a
FallingBlock entity due to normal gravity. |
static SpawnType |
MOB_SPAWNER
When an
Entity is spawned as a result of a
BlockTypes.MOB_SPAWNER or MobSpawnerMinecart entity
performs it's normal spawning. |
static SpawnType |
PASSIVE
Unknown for now.
|
static SpawnType |
PLACEMENT
When an entity is placed into the world, likely from a command.
|
static SpawnType |
PLUGIN
An entity spawned from a
Plugin , this can be for any reason
as dictated by the plugin. |
static SpawnType |
PROJECTILE
When an entity is spawned as a projectile, either from
being "thrown" or "launched".
|
static SpawnType |
SPAWN_EGG
When an entity is spawned from an
ItemTypes.SPAWN_EGG . |
static SpawnType |
STRUCTURE
When an entity is spawned from a structure or
Populator , usually
during world/chunk generation. |
static SpawnType |
TNT_IGNITE
When an entity is spawned from
BlockTypes.TNT . |
static SpawnType |
WEATHER
|
static SpawnType |
WORLD_SPAWNER
An entity spawned from the normal world spawner (natural spawning).
|
public static final SpawnType BLOCK_SPAWNING
BlockTypes.MONSTER_EGG
where a
EntityTypes.SILVERFISH
may spawn.public static final SpawnType BREEDING
public static final SpawnType CUSTOM
public static final SpawnType DISPENSE
BlockTypes.DISPENSER
or BlockTypes.DROPPER
or
equivalent spawns an entity as it's normal function of "dispensing".public static final SpawnType DROPPED_ITEM
public static final SpawnType EXPERIENCE
ExperienceOrb
is spawned as a result of a "reward" from
an Entity
granting experience for the kill, or a Villager
granting experience for a successful trade, or a block being mined.public static final SpawnType FALLING_BLOCK
FallingBlock
entity due to normal gravity.public static final SpawnType MOB_SPAWNER
Entity
is spawned as a result of a
BlockTypes.MOB_SPAWNER
or MobSpawnerMinecart
entity
performs it's normal spawning.public static final SpawnType PASSIVE
public static final SpawnType PLACEMENT
public static final SpawnType PLUGIN
Plugin
, this can be for any reason
as dictated by the plugin.public static final SpawnType PROJECTILE
public static final SpawnType SPAWN_EGG
ItemTypes.SPAWN_EGG
.public static final SpawnType STRUCTURE
Populator
, usually
during world/chunk generation.public static final SpawnType TNT_IGNITE
BlockTypes.TNT
.public static final SpawnType WEATHER
public static final SpawnType WORLD_SPAWNER