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 Detail

      • SpawnerSpawnEvent

        public SpawnerSpawnEvent​(@NotNull
                                 Entity spawnee,
                                 @NotNull
                                 CreatureSpawner spawner)