Interface SpawnEntityEvent
-
- All Superinterfaces:
AffectEntityEvent
,Cancellable
,Event
- All Known Subinterfaces:
ChangeInventoryEvent.Drop
,ChangeInventoryEvent.Drop.Full
,ChangeInventoryEvent.Drop.Single
,ClickContainerEvent.Creative.Drop
,ClickContainerEvent.Drop
,ClickContainerEvent.Drop.Full
,ClickContainerEvent.Drop.Outside
,ClickContainerEvent.Drop.Outside.Primary
,ClickContainerEvent.Drop.Outside.Secondary
,ClickContainerEvent.Drop.Single
,DropItemEvent.Close
,DropItemEvent.Custom
,DropItemEvent.Destruct
,DropItemEvent.Dispense
,SpawnEntityEvent.Custom
,SpawnEntityEvent.Pre
- All Known Implementing Classes:
AbstractSpawnEntityEvent
public interface SpawnEntityEvent extends AffectEntityEvent
Raised when anEntity
is spawned. This usually follows the chain of the various entity creation events:ConstructEntityEvent.Pre
,ConstructEntityEvent.Post
, and finallySpawnEntityEvent
.Note: To determine the
Cause
, refer to package org.spongepowered.api.event.cause.entity.spawn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SpawnEntityEvent.Custom
static interface
SpawnEntityEvent.Pre
An event that is thrown prior to anEntity
being potentially added to aWorld
such that any relational recording or transacting/association of the spawn to another action, such as ablock change
will be omitted.
-
Method Summary
-
Methods inherited from interface org.spongepowered.api.event.entity.AffectEntityEvent
entities, entitySnapshots, filterEntities, filterEntityLocations
-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-