Class SpecialBlockAddEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.SpecialBlockAddEvent
All Implemented Interfaces:
Cancellable

public class SpecialBlockAddEvent extends Event implements Cancellable
Gets called when a SpecialBlock is being added.

The way of how it got added is not relevant. Meaning it's also getting called when they get loaded, a player adds it, a plugin adds it or whatever

  • Constructor Details

    • SpecialBlockAddEvent

      public SpecialBlockAddEvent(SpecialBlock block)
  • Method Details

    • getBlock

      public SpecialBlock getBlock()
      Returns the block that has been added
      Returns:
      The block that has been added
    • setCancelled

      public void setCancelled(boolean bool)
      Specified by:
      setCancelled in interface Cancellable
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()