Package me.kzheart.klib.ui.drop
Class InventoryAction
java.lang.Object
me.kzheart.klib.ui.drop.InventoryAction
投放输入的 Java 平台返回契约;快照与校验由 Kotlin 实现。
旧 Kotlin 调用 if (action.item() != null) action.item().amount 依赖平台类型;TAKE 仍无物品快照。
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintamount()static InventoryActionorg.bukkit.inventory.ItemStackitem()static InventoryActionplace(int slot, org.bukkit.inventory.ItemStack item, int amount) static InventoryActionshiftInsert(org.bukkit.inventory.ItemStack item) intslot()static InventoryActiontake(int slot, int amount) type()
-
Method Details
-
place
-
shiftInsert
-
drag
public static InventoryAction drag(org.bukkit.inventory.ItemStack item, Map<Integer, Integer> amounts) -
take
-
type
-
slot
public int slot() -
item
public org.bukkit.inventory.ItemStack item() -
amount
public int amount() -
dragAmounts
-