Package net.minestom.server.event.entity
Class EntitySpawnEvent
java.lang.Object
net.minestom.server.event.entity.EntitySpawnEvent
- All Implemented Interfaces:
Event
,EntityEvent
,EntityInstanceEvent
,InstanceEvent
Called when a new instance is set for an entity.
-
Constructor Details
-
EntitySpawnEvent
-
-
Method Details
-
getEntity
Gets the entity who spawned in the instance.- Specified by:
getEntity
in interfaceEntityEvent
- Returns:
- the entity
-
getSpawnInstance
Gets the entity new instance.- Returns:
- the instance
-