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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entity who spawned in the instance.Gets the entity new instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstance
-
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
-