Class TownPreSetHomeBlockEvent

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

public class TownPreSetHomeBlockEvent extends CancellableTownyEvent
  • Constructor Details

    • TownPreSetHomeBlockEvent

      public TownPreSetHomeBlockEvent(Town town, TownBlock townBlock, org.bukkit.entity.Player player)
  • Method Details

    • getTown

      public Town getTown()
      Returns:
      Town which is about to set their homeblock.
    • getTownBlock

      public TownBlock getTownBlock()
      Returns:
      TownBlock which will become the homeblock.
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns:
      Player which is setting the town's homeblock.
    • getHandlerList

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

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