Class LivingSpawnEvent.SpecialSpawn

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
LivingSpawnEvent

public static class LivingSpawnEvent.SpecialSpawn extends LivingSpawnEvent
This event is fired whenever a Mob is set to be spawned, to allow for mod-specific initializers.

This event is cancellable and does not have a result. If the event is canceled, the mob will not spawn.

This event is fired on the main Forge event bus, only on the logical server.

  • Field Details

    • spawner

      @Nullable private final @Nullable BaseSpawner spawner
    • spawnReason

      private final MobSpawnType spawnReason
  • Constructor Details

  • Method Details

    • getSpawner

      @Nullable public @Nullable BaseSpawner getSpawner()
    • getSpawnReason

      public MobSpawnType getSpawnReason()