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
(org.bukkit.entity.Player player, org.bukkit.event.Cancellable event, org.bukkit.inventory.EquipmentSlot hand) Processes a click event from a player.void
eventModified
(org.bukkit.event.Cancellable event) Records that given event was cancelled or uncancelled.
-
Constructor Details
-
ClickEventTracker
public ClickEventTracker(org.bukkit.plugin.java.JavaPlugin plugin)
-
-
Method Details
-
checkEvent
public boolean checkEvent(org.bukkit.entity.Player player, org.bukkit.event.Cancellable event, org.bukkit.inventory.EquipmentSlot hand) 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
public void eventModified(org.bukkit.event.Cancellable event) Records that given event was cancelled or uncancelled.- Parameters:
event
- The event.
-