Class MenuItem
java.lang.Object
net.playavalon.mythicdungeons.menu.menuitems.MenuItem
- Direct Known Subclasses:
ChatMenuItem
,ToggleMenuItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChatAction
(MenuAction<org.bukkit.event.player.AsyncPlayerChatEvent> action) void
addHoverAction
(MenuAction<org.bukkit.event.player.PlayerItemHeldEvent> action) void
addSelectAction
(MenuAction<org.bukkit.event.player.PlayerEvent> action) abstract void
void
onChat
(org.bukkit.event.player.AsyncPlayerChatEvent event) void
onHover
(org.bukkit.event.player.PlayerItemHeldEvent event) abstract void
onSelect
(org.bukkit.event.player.PlayerEvent event) void
runChatActions
(org.bukkit.event.player.AsyncPlayerChatEvent event) void
runHoverActions
(org.bukkit.event.player.PlayerItemHeldEvent event) void
runSelectActions
(org.bukkit.event.player.PlayerEvent event)
-
Constructor Details
-
MenuItem
public MenuItem()
-
-
Method Details
-
buildButton
public abstract void buildButton() -
onSelect
public abstract void onSelect(org.bukkit.event.player.PlayerEvent event) -
onChat
public void onChat(org.bukkit.event.player.AsyncPlayerChatEvent event) -
onHover
public void onHover(org.bukkit.event.player.PlayerItemHeldEvent event) -
runSelectActions
public void runSelectActions(org.bukkit.event.player.PlayerEvent event) -
runChatActions
public void runChatActions(org.bukkit.event.player.AsyncPlayerChatEvent event) -
runHoverActions
public void runHoverActions(org.bukkit.event.player.PlayerItemHeldEvent event)
-