Class WildernessMapEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.asciimap.WildernessMapEvent
public class WildernessMapEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the command used when clicking on a symbol on the map.static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
net.kyori.adventure.text.TextComponent
Get the text shown on hover.The symbol used for the WorldCoord on the map.Get the WorldCoord which is being shown on the map.void
setClickCommand
(String clickCommand) Set the command which is run when the map is clicked on.void
setHoverText
(net.kyori.adventure.text.TextComponent hoverText) Set the hovertext.void
setMapSymbol
(String mapSymbol) Set the symbol used for the WorldCoord on the map.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
WildernessMapEvent
-
-
Method Details
-
getMapSymbol
The symbol used for the WorldCoord on the map.- Returns:
- symbol used on the map;
-
setMapSymbol
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
Get the command used when clicking on a symbol on the map.- Returns:
- String which consists of the command.
-
setClickCommand
Set the command which is run when the map is clicked on.- Parameters:
clickCommand
- String which consists of the command.
-
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-