Class KreaturSpawnEreignis

All Implemented Interfaces:
Abbrechbar

public class KreaturSpawnEreignis extends WesenSpawnEreignis
Called when a creature is spawned into a welt.

If a Kreatur Spawn ereignis is cancelled, the creature will not spawn.

  • Constructor Details

  • Method Details

    • getEntity

      @NotNull public Lebewesen getEntity()
      Description copied from class: WesenEreignis
      Returns the Wesen involved in this ereignis
      Overrides:
      getEntity in class WesenEreignis
      Returns:
      Wesen who is involved in this ereignis
    • getSpawnReason

      @NotNull public KreaturSpawnEreignis.SpawnReason getSpawnReason()
      Gets the reason for why the creature is being spawned.
      Returns:
      A SpawnReason value detailing the reason for the creature being spawned