Class InteractionHandler
java.lang.Object
de.placeblock.betterinventories.interaction.InteractionHandler
- Direct Known Subclasses:
ButtonClickHandler,CancelInteractionHandler
InteractionHandlers are used to process Interactions in GUIs.
You can register them in a GUI using a
HandlerPriority.
When an interaction occurs the InteractionHandler will get called.
If one Handler returns true other Handlers won't get executed anymore.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
gui
The according GUI
-
-
Constructor Details
-
InteractionHandler
public InteractionHandler()
-
-
Method Details
-
onClick
public abstract boolean onClick(org.bukkit.event.inventory.InventoryClickEvent event) Called on-click- Parameters:
event- The Event- Returns:
- Whether to stop handler-calling
-
onDrag
public abstract boolean onDrag(org.bukkit.event.inventory.InventoryDragEvent event) Called on-drag- Parameters:
event- The Event- Returns:
- Whether to stop handler-calling
-