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.

Since:
1.13.1
  • Constructor Details

  • Method Details

    • getSpawnerLocation

      public Location getSpawnerLocation()
      Since:
      1.13.1