Package com.ranull.graves.inventory
Class GraveMenu
java.lang.Object
com.ranull.graves.inventory.GraveMenu
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
Represents a menu for a specific grave, displayed in an inventory.
Implements InventoryHolder to manage inventory display.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGrave()
Gets the Grave object associated with this menu.@NotNull org.bukkit.inventory.Inventory
Gets the inventory associated with this GraveMenu.void
setInventory
(org.bukkit.inventory.Inventory inventory) Sets the inventory for this GraveMenu.
-
Field Details
-
grave
-
inventory
private org.bukkit.inventory.Inventory inventory
-
-
Constructor Details
-
GraveMenu
Constructs a new GraveMenu instance for the specified grave.- Parameters:
grave
- The Grave object associated with this menu.
-
-
Method Details
-
getInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()Gets the inventory associated with this GraveMenu.- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
- Returns:
- The Inventory object.
-
setInventory
public void setInventory(org.bukkit.inventory.Inventory inventory) Sets the inventory for this GraveMenu.- Parameters:
inventory
- The Inventory object to set.
-
getGrave
Gets the Grave object associated with this menu.- Returns:
- The Grave object.
-