Class SpawnerSpawnEvent

All Implemented Interfaces:
Cancellable

public class SpawnerSpawnEvent extends EntitySpawnEvent
Called when an entity is spawned into a world by a spawner.

If a Spawner Spawn event is cancelled, the entity will not spawn.

  • Constructor Details

    • SpawnerSpawnEvent

      public SpawnerSpawnEvent(@NotNull Entity spawnee, @NotNull CreatureSpawner spawner)
  • Method Details