Class GraveMenu

java.lang.Object
com.ranull.graves.inventory.GraveMenu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public class GraveMenu extends Object implements org.bukkit.inventory.InventoryHolder
Represents a menu for a specific grave, displayed in an inventory. Implements InventoryHolder to manage inventory display.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Grave
     
    private org.bukkit.inventory.Inventory
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new GraveMenu instance for the specified grave.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • grave

      private final Grave grave
    • inventory

      private org.bukkit.inventory.Inventory inventory
  • Constructor Details

    • GraveMenu

      public GraveMenu(Grave grave)
      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 interface org.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

      public Grave getGrave()
      Gets the Grave object associated with this menu.
      Returns:
      The Grave object.