Class WildernessMapEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.asciimap.WildernessMapEvent

public class WildernessMapEvent extends org.bukkit.event.Event
  • Constructor Details

    • WildernessMapEvent

      public WildernessMapEvent(WorldCoord worldCoord)
  • Method Details

    • getMapSymbol

      public String getMapSymbol()
      The symbol used for the WorldCoord on the map.
      Returns:
      symbol used on the map;
    • setMapSymbol

      public void setMapSymbol(String mapSymbol)
      Set the symbol used for the WorldCoord on the map.
      Parameters:
      mapSymbol - String which can only be a single character long.
    • getHoverText

      public net.kyori.adventure.text.TextComponent getHoverText()
      Get the text shown on hover.
      Returns:
      TextComponent which builds the hover text.
    • setHoverText

      public void setHoverText(net.kyori.adventure.text.TextComponent hoverText)
      Set the hovertext.
      Parameters:
      hoverText - TextComponent which becomes the hover text.
    • getClickCommand

      public String getClickCommand()
      Get the command used when clicking on a symbol on the map.
      Returns:
      String which consists of the command.
    • setClickCommand

      public void setClickCommand(String clickCommand)
      Set the command which is run when the map is clicked on.
      Parameters:
      clickCommand - String which consists of the command.
    • getWorldCoord

      public WorldCoord getWorldCoord()
      Get the WorldCoord which is being shown on the map.
      Returns:
      WorldCoord which is being shown on the map.
    • getHandlers

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

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