Interface ActionItem.ActionHandler
- Enclosing class:
- ActionItem
public static interface ActionItem.ActionHandler
Represents the action that should happen when this action item is clicked
-
Method Summary
Modifier and TypeMethodDescriptionvoidonClick(GUIClickEvent event) When called should perform the action that should happen when this action item is clicked.
-
Method Details
-
onClick
When called should perform the action that should happen when this action item is clicked. If the GUI should close, call player.closeInventory() in the next tick (using bukkit scheduler). Do not close the inventory in the same tick as this because it will cause issues. (Due to bukkit's handling of inventory events)- Parameters:
event- The ClickEvent that caused this to be called
-