Class EventDebounce<K>

java.lang.Object
com.sk89q.worldguard.bukkit.listener.debounce.EventDebounce<K>

public class EventDebounce<K> extends Object
  • Constructor Details

    • EventDebounce

      public EventDebounce(int debounceTime)
  • Method Details

    • fireToCancel

      public <T extends org.bukkit.event.Event & org.bukkit.event.Cancellable> void fireToCancel(org.bukkit.event.Cancellable originalEvent, T firedEvent, K key)
    • getIfNotPresent

      @Nullable public <T extends org.bukkit.event.Event & org.bukkit.event.Cancellable> EventDebounce.Entry getIfNotPresent(K key, org.bukkit.event.Cancellable originalEvent)
    • create

      public static <K> EventDebounce<K> create(int debounceTime)