Package net.minestom.server.event.entity
Class EntitySpawnEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.entity.EntitySpawnEvent
- Direct Known Subclasses:
PlayerSpawnEvent
public class EntitySpawnEvent extends Event
Called when a new instance is set for an entity.
-
Constructor Summary
Constructors Constructor Description EntitySpawnEvent(Entity entity, Instance spawnInstance)
-
Method Summary
Modifier and Type Method Description Entity
getEntity()
Gets the entity who spawned in the instance.Instance
getSpawnInstance()
Gets the entity new instance.
-
Constructor Details
-
Method Details
-
getEntity
Gets the entity who spawned in the instance.- Returns:
- the entity
-
getSpawnInstance
Gets the entity new instance.- Returns:
- the instance
-