public interface SpawnEntityEvent extends AffectEntityEvent, Cancellable, CauseTracked
Entity
is spawned. This usually follows the chain of
the various entity creation events: ConstructEntityEvent.Pre
,
ConstructEntityEvent.Post
, and finally SpawnEntityEvent
.
Note: To determine the Cause
, refer to package
org.spongepowered.api.event.cause.entity.spawn.
For players, this event is fired before they have fully
joined the world. ClientConnectionEvent
is the
reccomended event to interact with connecting players.
Modifier and Type | Interface and Description |
---|---|
static interface |
SpawnEntityEvent.ChunkLoad |
static interface |
SpawnEntityEvent.Custom |
static interface |
SpawnEntityEvent.Spawner |
filterEntities, filterEntityLocations, getEntities, getEntitySnapshots
getTargetWorld
isCancelled, setCancelled
getCause