Package net.tnemc.menu.folia
Class FoliaInventory
java.lang.Object
net.tnemc.menu.paper.PaperInventory
net.tnemc.menu.folia.FoliaInventory
- All Implemented Interfaces:
PlayerInventory<org.bukkit.inventory.Inventory>
-
Field Summary
Fields inherited from class net.tnemc.menu.paper.PaperInventory
id, plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Used to close the player's currently open inventory.voidopenInventory(org.bukkit.inventory.Inventory inventory) Used to open the provided inventory for this player.voidupdateInventory(int slot, net.tnemc.item.AbstractItemStack<?> item) Used to update the inventory the player is in with a new item for a specific slot.Methods inherited from class net.tnemc.menu.paper.PaperInventory
build, player
-
Constructor Details
-
FoliaInventory
-
-
Method Details
-
openInventory
public void openInventory(org.bukkit.inventory.Inventory inventory) Used to open the provided inventory for this player.- Specified by:
openInventoryin interfacePlayerInventory<org.bukkit.inventory.Inventory>- Overrides:
openInventoryin classPaperInventory- 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:
updateInventoryin interfacePlayerInventory<org.bukkit.inventory.Inventory>- Overrides:
updateInventoryin classPaperInventory- 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:
closein interfacePlayerInventory<org.bukkit.inventory.Inventory>- Overrides:
closein classPaperInventory
-