Class WesenAenderBlockEreignis

All Implemented Interfaces:
Abbrechbar
Direct Known Subclasses:
WesenBrichTuerEreignis

public class WesenAenderBlockEreignis extends WesenEreignis implements Abbrechbar
Called when any Wesen changes a block and a more specific ereignis is not available.
  • Constructor Details

    • WesenAenderBlockEreignis

      public WesenAenderBlockEreignis(@NotNull Wesen what, @NotNull Block block, @NotNull BlockData to)
  • Method Details

    • getBlock

      @NotNull public Block getBlock()
      Gets the block the wesen is changing
      Returns:
      the block that is changing
    • 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
    • getTo

      @NotNull public Material getTo()
      Gets the Material that the block is changing into
      Returns:
      the material that the block is changing into
    • getBlockData

      @NotNull public BlockData getBlockData()
      Gets the data for the block that would be changed into
      Returns:
      the data for the block that would be changed into
    • getHandlers

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

      @NotNull public static HandhaberListe getHandlerList()