Package ch.njol.skript.bukkitutil
Class ClickEventTracker
java.lang.Object
ch.njol.skript.bukkitutil.ClickEventTracker
Tracks click events to remove extraneous events for one player click.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkEvent
(Player player, Cancellable event, EquipmentSlot hand) Processes a click event from a player.void
eventModified
(Cancellable event) Records that given event was cancelled or uncancelled.
-
Constructor Details
-
ClickEventTracker
-
-
Method Details
-
checkEvent
Processes a click event from a player.- Parameters:
player
- Player who caused it.event
- The event.hand
- Slot associated with the event.- Returns:
- If the event should be passed to scripts.
-
eventModified
Records that given event was cancelled or uncancelled.- Parameters:
event
- The event.
-