Package org.bukkit.inventory
Interface EnchantingInventory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStack
getItem()
Get the item being enchanted.ItemStack
getSecondary()
Get the secondary item being used for the enchant.void
setItem(ItemStack item)
Set the item being enchanted.void
setSecondary(ItemStack item)
Set the secondary item being used for the enchant.-
Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
setItem
void setItem(ItemStack item)
Set the item being enchanted.- Parameters:
item
- The new item
-
getItem
ItemStack getItem()
Get the item being enchanted.- Returns:
- The current item.
-
setSecondary
void setSecondary(ItemStack item)
Set the secondary item being used for the enchant.- Parameters:
item
- The new item
-
getSecondary
ItemStack getSecondary()
Get the secondary item being used for the enchant.- Returns:
- The second item
-
-