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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entity who spawned in the instance.Gets the entity new instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInstanceEvent
getInstance
-
Constructor Details
-
EntitySpawnEvent
-
-
Method Details
-
getEntity
Gets the entity who spawned in the instance.- Specified by:
getEntityin interfaceEntityEvent- Returns:
- the entity
-
getSpawnInstance
-