Class PreSpawnerSpawnEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class PreSpawnerSpawnEvent extends PreCreatureSpawnEvent
Called before an entity is spawned into a world by a spawner.

This only includes the spawner's location and not the full BlockState snapshot for performance reasons. If you really need it you have to get the spawner yourself.

  • Constructor Details Link icon

  • Method Details Link icon

    • getSpawnerLocation Link icon

      public Location getSpawnerLocation()