Class FoliaInventory

java.lang.Object
net.tnemc.menu.paper.PaperInventory
net.tnemc.menu.folia.FoliaInventory
All Implemented Interfaces:
PlayerInventory<org.bukkit.inventory.Inventory>

public class FoliaInventory extends PaperInventory
  • Constructor Details

    • FoliaInventory

      public FoliaInventory(UUID id, org.bukkit.plugin.java.JavaPlugin plugin)
  • Method Details

    • openInventory

      public void openInventory(org.bukkit.inventory.Inventory inventory)
      Used to open the provided inventory for this player.
      Specified by:
      openInventory in interface PlayerInventory<org.bukkit.inventory.Inventory>
      Overrides:
      openInventory in class PaperInventory
      Parameters:
      inventory - The inventory to open.
    • updateInventory

      public void updateInventory(int slot, net.tnemc.item.AbstractItemStack<?> item)
      Used to update the inventory the player is in with a new item for a specific slot.
      Specified by:
      updateInventory in interface PlayerInventory<org.bukkit.inventory.Inventory>
      Overrides:
      updateInventory in class PaperInventory
      Parameters:
      slot - The slot to update.
      item - The item to update the specified slot with.
    • close

      public void close()
      Used to close the player's currently open inventory.
      Specified by:
      close in interface PlayerInventory<org.bukkit.inventory.Inventory>
      Overrides:
      close in class PaperInventory