Class TownBlockPermissionChangeEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.TownBlockPermissionChangeEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class TownBlockPermissionChangeEvent extends CancellableTownyEvent
  • Constructor Details

    • TownBlockPermissionChangeEvent

      public TownBlockPermissionChangeEvent(@NotNull @NotNull TownBlock townBlock, @NotNull @NotNull TownyPermissionChange change)
  • Method Details

    • getTownBlock

      public TownBlock getTownBlock()
    • getChange

      public TownyPermissionChange getChange()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Overrides:
      isCancelled in class CancellableTownyEvent
      Returns:
      true if this event is cancelled.
    • setCancelled

      public void setCancelled(boolean b)
      Description copied from class: CancellableTownyEvent
      Sets the event to be cancelled or not.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Overrides:
      setCancelled in class CancellableTownyEvent
      Parameters:
      b - true will cancel the event.
    • getHandlers

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

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