Class ItemDropTracker

java.lang.Object
net.mathias2246.buildmc.api.item.ItemDropTracker
All Implemented Interfaces:
org.bukkit.event.Listener

@Internal public class ItemDropTracker extends Object implements org.bukkit.event.Listener
Tracks players who recently dropped an item.

Uses high-resolution timestamps to determine if a player dropped an item within a configurable threshold (default 100 ms).

  • Constructor Details

    • ItemDropTracker

      public ItemDropTracker(org.bukkit.plugin.Plugin plugin)
    • ItemDropTracker

      public ItemDropTracker(org.bukkit.plugin.Plugin plugin, long sameTickNanos)
  • Method Details

    • onItemDrop

      public void onItemDrop(org.bukkit.event.player.PlayerDropItemEvent event)
    • droppedRecently

      public static boolean droppedRecently(org.bukkit.entity.Player player)
      Returns true if the player dropped an item within the configured threshold.