Interface EnchantingInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface EnchantingInventory extends Inventory
Interface to the inventory of an Enchantment Table.
Since:
1.1.0
  • Method Details

    • setItem

      void setItem(@Nullable @Nullable ItemStack item)
      Set the item being enchanted.
      Parameters:
      item - The new item
      Since:
      1.1.0
    • getItem

      Get the item being enchanted.
      Returns:
      The current item.
      Since:
      1.1.0
    • setSecondary

      void setSecondary(@Nullable @Nullable ItemStack item)
      Set the secondary item being used for the enchant.
      Parameters:
      item - The new item
      Since:
      1.8
    • getSecondary

      @Nullable @Nullable ItemStack getSecondary()
      Get the secondary item being used for the enchant.
      Returns:
      The second item
      Since:
      1.8