Class WesenVerbrennEreignis

All Implemented Interfaces:
Abbrechbar
Direct Known Subclasses:
WesenVerbrennDurchBlockEreignis, WesenVerbrennDurchWesenEreignis

public class WesenVerbrennEreignis extends WesenEreignis implements Abbrechbar
Called when an wesen combusts.

If an Wesen Combust ereignis is cancelled, the wesen will not combust.

  • Constructor Details

    • WesenVerbrennEreignis

      public WesenVerbrennEreignis(@NotNull Wesen combustee, int duration)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Abbrechbar
      Gets the cancellation state of this ereignis. A cancelled ereignis will not be executed in the server, but will still pass to other plugins
      Specified by:
      isCancelled in interface Abbrechbar
      Returns:
      true if this ereignis is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Abbrechbar
      Sets the cancellation state of this ereignis. A cancelled ereignis will not be executed in the server, but will still pass to other plugins.
      Specified by:
      setCancelled in interface Abbrechbar
      Parameters:
      cancel - true if you wish to cancel this ereignis
    • getDuration

      public int getDuration()
      Returns:
      the amount of time (in seconds) the combustee should be alight for
    • setDuration

      public void setDuration(int duration)
      The number of seconds the combustee should be alight for.

      This value will only ever increase the combustion time, not decrease existing combustion times.

      Parameters:
      duration - the time in seconds to be alight for.
    • getHandlers

      @NotNull public HandhaberListe getHandlers()
      Specified by:
      getHandlers in class Ereignis
    • getHandlerList

      @NotNull public static HandhaberListe getHandlerList()