Class InventoryAction

java.lang.Object
me.kzheart.klib.ui.drop.InventoryAction

public final class InventoryAction extends Object
投放输入的 Java 平台返回契约;快照与校验由 Kotlin 实现。 旧 Kotlin 调用 if (action.item() != null) action.item().amount 依赖平台类型;TAKE 仍无物品快照。
  • Method Details

    • place

      public static InventoryAction place(int slot, org.bukkit.inventory.ItemStack item, int amount)
    • shiftInsert

      public static InventoryAction shiftInsert(org.bukkit.inventory.ItemStack item)
    • drag

      public static InventoryAction drag(org.bukkit.inventory.ItemStack item, Map<Integer,Integer> amounts)
    • take

      public static InventoryAction take(int slot, int amount)
    • type

      public InventoryAction.Type type()
    • slot

      public int slot()
    • item

      public org.bukkit.inventory.ItemStack item()
    • amount

      public int amount()
    • dragAmounts

      public Map<Integer,Integer> dragAmounts()