mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-30 16:34:48 +02:00
27 lines
544 B
Java
27 lines
544 B
Java
package net.minestom.server.event.entity;
|
|
|
|
import net.minestom.server.event.Event;
|
|
import net.minestom.server.instance.Instance;
|
|
|
|
/**
|
|
* Called when a new instance is set for an entity
|
|
*/
|
|
public class EntitySpawnEvent extends Event {
|
|
|
|
private Instance spawnInstance;
|
|
|
|
public EntitySpawnEvent(Instance spawnInstance) {
|
|
this.spawnInstance = spawnInstance;
|
|
}
|
|
|
|
/**
|
|
* Get the entity new instance
|
|
*
|
|
* @return the instance
|
|
*/
|
|
public Instance getSpawnInstance() {
|
|
return spawnInstance;
|
|
}
|
|
|
|
}
|