Package com.ranull.graves.inventory
Class GraveList
java.lang.Object
com.ranull.graves.inventory.GraveList
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
Represents a list of graves that can be displayed in an inventory.
Implements InventoryHolder to manage inventory display.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGrave(int slot) Gets the Grave object at the specified slot in the grave list.@NotNull org.bukkit.inventory.InventoryGets the inventory associated with this GraveList.getUUID()Gets the UUID associated with this GraveList.voidsetInventory(org.bukkit.inventory.Inventory inventory) Sets the inventory for this GraveList.
-
Constructor Details
-
GraveList
Constructs a new GraveList instance with the given UUID and list of graves.- Parameters:
uuid- The UUID associated with this GraveList.graveList- The list of graves to be managed.
-
-
Method Details
-
getInventory
@NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()Gets the inventory associated with this GraveList.- Specified by:
getInventoryin interfaceorg.bukkit.inventory.InventoryHolder- Returns:
- The Inventory object.
-
setInventory
public void setInventory(org.bukkit.inventory.Inventory inventory) Sets the inventory for this GraveList.- Parameters:
inventory- The Inventory object to set.
-
getUUID
Gets the UUID associated with this GraveList.- Returns:
- The UUID.
-
getGrave
Gets the Grave object at the specified slot in the grave list.- Parameters:
slot- The slot index to retrieve the grave from.- Returns:
- The Grave object at the specified slot, or null if the slot is invalid.
-