Class TownBlockExplosionTestEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.damage.TownBlockExplosionTestEvent

public class TownBlockExplosionTestEvent extends org.bukkit.event.Event
An event thrown when Towny will determine the explosion status of a townblock, or plot, in a town.
  • Constructor Details

    • TownBlockExplosionTestEvent

      public TownBlockExplosionTestEvent(TownBlock townBlock, Town town, boolean explosion)
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getTownBlock

      @NotNull public @NotNull TownBlock getTownBlock()
      Returns:
      the TownBlock which is having its explosion status decided.
    • getTown

      @NotNull public @NotNull Town getTown()
      Returns:
      the Town where this test is made.
    • isExplosion

      public boolean isExplosion()
      Returns:
      true if the townblock has explosions on.
    • setExplosion

      public void setExplosion(boolean explosion)
      Sets the explosion status and outcome of the event.
      Parameters:
      explosion - whether the event will result in explosions being on or off in the townblock.