org.bukkit.event.entity.SpawnerSpawnEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package org.bukkit.event.entity;
import org.bukkit.block.CreatureSpawner;
import org.bukkit.entity.Entity;
/**
* Called when an entity is spawned into a world by a spawner.
*
* If a Spawner Spawn event is cancelled, the entity will not spawn.
*/
public class SpawnerSpawnEvent extends EntitySpawnEvent {
private final CreatureSpawner spawner;
public SpawnerSpawnEvent(final Entity spawnee, final CreatureSpawner spawner) {
super(spawnee);
this.spawner = spawner;
}
public CreatureSpawner getSpawner() {
return spawner;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy