Package org.bukkit.inventory
Interface EnchantingInventory
Interface to the inventory of an Enchantment Table.
-
Method Summary
Modifier and TypeMethodDescriptiongetItem()
Get the item being enchanted.Get the secondary item being used for the enchant.void
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, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
setItem
Set the item being enchanted.- Parameters:
item
- The new item
-
getItem
Get the item being enchanted.- Returns:
- The current item.
-
setSecondary
Set the secondary item being used for the enchant.- Parameters:
item
- The new item
-
getSecondary
Get the secondary item being used for the enchant.- Returns:
- The second item
-