Interface EnchantingInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

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

    • setItem

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

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

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

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