All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.entity.SpawnerSpawnEvent Maven / Gradle / Ivy

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