Class ClickActionHandler


  • public class ClickActionHandler
    extends Object
    A handler to handle the click action
    • Constructor Detail

      • ClickActionHandler

        public ClickActionHandler​(Menu menu,
                                  Map<BukkitClickType,​ActionApplier> actionMap,
                                  boolean closeOnClick)
        Create a new click action handler
        Parameters:
        menu - the menu
        actionMap - the action map
        closeOnClick - if the menu should close when the player click
      • ClickActionHandler

        public ClickActionHandler​(Menu menu,
                                  Object o,
                                  boolean closeOnClick)
        Create a new click action handler
        Parameters:
        menu - the menu
        o - the action value
        closeOnClick - if the menu should close when the player click
    • Method Detail

      • apply

        public void apply​(UUID uuid,
                          BukkitClickType clickType,
                          BatchRunnable batchRunnable)
        Apply the action to the runnable
        Parameters:
        uuid - the unique id
        clickType - the click type
        batchRunnable - the batch runnable