Interface AnvilInventory


public interface AnvilInventory
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.inventory.Inventory
    Gets Bukkit's Inventory associated to this AnvilInventory
    Gets the rename text the user has typed in the renaming section of the anvil.
    boolean
    Gets if this inventory is currently open.
    void
    Opens the inventory.
    void
    setItem(int slot, @Nullable org.bukkit.inventory.ItemStack itemStack)
    Sets an ItemStack on one of the three slots.
  • Method Details

    • getBukkitInventory

      @NotNull @NotNull org.bukkit.inventory.Inventory getBukkitInventory()
      Gets Bukkit's Inventory associated to this AnvilInventory
      Returns:
      The Inventory
    • open

      void open()
      Opens the inventory.
    • setItem

      void setItem(int slot, @Nullable @Nullable org.bukkit.inventory.ItemStack itemStack)
      Sets an ItemStack on one of the three slots.
      Parameters:
      slot - The slot
      itemStack - The ItemStack
    • getRenameText

      String getRenameText()
      Gets the rename text the user has typed in the renaming section of the anvil.
      Returns:
      The rename text
    • isOpen

      boolean isOpen()
      Gets if this inventory is currently open.
      Returns:
      If the inventory is currently open