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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Used to close the player's currently open inventory.void
openInventory
(org.bukkit.inventory.Inventory inventory) Used to open the provided inventory for this player.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.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:
openInventory
in interfacePlayerInventory<org.bukkit.inventory.Inventory>
- Overrides:
openInventory
in 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:
updateInventory
in interfacePlayerInventory<org.bukkit.inventory.Inventory>
- Overrides:
updateInventory
in 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:
close
in interfacePlayerInventory<org.bukkit.inventory.Inventory>
- Overrides:
close
in classPaperInventory
-