Class BlockZuendeAnEreignis

All Implemented Interfaces:
Abbrechbar

public class BlockZuendeAnEreignis extends BlockEreignis implements Abbrechbar
Called when a block is ignited. If you want to catch when a Spieler places fire, you need to use BlockSetzeEreignis.

If a Block Ignite ereignis is cancelled, the block will not be ignited.

  • Constructor Details

  • 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
    • getCause

      @NotNull public BlockZuendeAnEreignis.IgniteCause getCause()
      Gets the cause of block ignite.
      Returns:
      An IgniteCause value detailing the cause of block ignition
    • getPlayer

      @Nullable public Spieler getPlayer()
      Gets the spieler who ignited this block
      Returns:
      The Spieler that placed/ignited the fire block, or null if not ignited by a Spieler.
    • getIgnitingEntity

      @Nullable public Wesen getIgnitingEntity()
      Gets the wesen who ignited this block
      Returns:
      The Wesen that placed/ignited the fire block, or null if not ignited by a Wesen.
    • getIgnitingBlock

      @Nullable public Block getIgnitingBlock()
      Gets the block which ignited this block
      Returns:
      The Block that placed/ignited the fire block, or null if not ignited by a Block.
    • getHandlers

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

      @NotNull public static HandhaberListe getHandlerList()