Interface EnchantingInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface EnchantingInventory extends Inventory
Interface to the inventory of an Enchantment Table.
  • Method Details Link icon

    • setItem Link icon

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

      @Nullable ItemStack getItem()
      Get the item being enchanted.
      Returns:
      The current item.
    • setSecondary Link icon

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

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