Class IconAction

java.lang.Object
net.tnemc.menu.core.icon.action.IconAction
Direct Known Subclasses:
ChatAction, DataAction, RunnableAction, SwitchMenuAction, SwitchPageAction

public abstract class IconAction extends Object
Represents an action that is performed on an icon within a menu. This class provides a common structure for different types of icon actions.
Since:
1.5.0.0
Author:
creatorfromhell
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public ActionType getType()
    • continueOther

      public boolean continueOther()
      Determines if any other icon actions should be performed after this action is performed.
      Returns:
      true if other actions should be performed, otherwise false.
    • onClick

      public abstract boolean onClick(MenuClickHandler handler)
      Handles the click action for the icon using the provided MenuClickHandler.
      Parameters:
      handler - The MenuClickHandler to be executed upon the click action.
      Returns:
      true if the click action is blocked or has special behavior, otherwise false.