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 Link icon

    • TownBlockPermissionChangeEvent Link icon

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

    • getTownBlock Link icon

      public TownBlock getTownBlock()
    • getChange Link icon

      public TownyPermissionChange getChange()
    • isCancelled Link icon

      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 Link icon

      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 Link icon

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

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