接口 EnchantingInventory
附魔界面接口
-
方法概要
从接口继承的方法 org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
setItem
设置将被附魔的物品.原文:Set the item being enchanted.
- 参数:
item
- 将被附魔的物品
-
getItem
获取将被附魔的物品.原文:Get the item being enchanted.
- 返回:
- 将被附魔的物品.
-
setSecondary
设置将被用于附魔的第二物品(如青金石).原文: Set the secondary item being used for the enchant.
- 参数:
item
- 将被用于附魔的第二物品
-
getSecondary
获取将被用于附魔的第二物品(如青金石).原文: Get the secondary item being used for the enchant.
- 返回:
- 将被用于附魔的第二物品
-