Class ClickEventTracker

java.lang.Object
ch.njol.skript.bukkitutil.ClickEventTracker

public class ClickEventTracker extends Object
Tracks click events to remove extraneous events for one player click.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClickEventTracker(org.bukkit.plugin.java.JavaPlugin plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.