Class FledermausSchalteUmSchlafEreignis

java.lang.Object
de.eimmer.ereignis.Ereignis
de.eimmer.ereignis.wesen.WesenEreignis
de.eimmer.ereignis.wesen.FledermausSchalteUmSchlafEreignis
All Implemented Interfaces:
Abbrechbar

public class FledermausSchalteUmSchlafEreignis extends WesenEreignis implements Abbrechbar
Called when a bat attempts to sleep or wake up from its slumber.

If a Fledermaus Toggle Sleep ereignis is cancelled, the Fledermaus will not toggle its sleep state.

  • Constructor Details

    • FledermausSchalteUmSchlafEreignis

      public FledermausSchalteUmSchlafEreignis(@NotNull Fledermaus what, boolean awake)
  • Method Details

    • isAwake

      public boolean isAwake()
      Get whether or not the bat is attempting to awaken.
      Returns:
      true if trying to awaken, false otherwise
    • 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
    • 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
    • getHandlers

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

      @NotNull public static HandhaberListe getHandlerList()