Class DragDecoder

java.lang.Object
com.ultikits.ultitools.ui.chest.DragDecoder

@Internal public final class DragDecoder extends Object
Pure drag decoding, with raw slot numbers mapped to their ownership.
  • Constructor Details

    • DragDecoder

      private DragDecoder()
  • Method Details

    • decode

      public static ClickDecision decode(org.bukkit.event.inventory.DragType type, Map<Integer,SlotKind> targets)
      Returns exactly one decision for a complete set of drag targets, including one-slot drags.
    • boundDrag

      private static ClickDecision boundDrag(org.bukkit.event.inventory.DragType type, Set<Integer> targets)
    • bound

      private static boolean bound(SlotKind kind)