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

  • Method Details

    • getSpawnerLocation

      public Location getSpawnerLocation()