Package me.hsgamer.bettergui.action
Class ClickActionHandler
- java.lang.Object
-
- me.hsgamer.bettergui.action.ClickActionHandler
-
public class ClickActionHandler extends Object
A handler to handle the click action
-
-
Constructor Summary
Constructors Constructor Description ClickActionHandler(Menu menu, Object o, boolean closeOnClick)Create a new click action handlerClickActionHandler(Menu menu, Map<BukkitClickType,ActionApplier> actionMap, boolean closeOnClick)Create a new click action handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(UUID uuid, BukkitClickType clickType, BatchRunnable batchRunnable)Apply the action to the runnable
-
-
-
Constructor Detail
-
ClickActionHandler
public ClickActionHandler(Menu menu, Map<BukkitClickType,ActionApplier> actionMap, boolean closeOnClick)
Create a new click action handler- Parameters:
menu- the menuactionMap- the action mapcloseOnClick- 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 idclickType- the click typebatchRunnable- the batch runnable
-
-