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.
-
Field Summary
Fields -
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.Inventory
Gets the inventory associated with this GraveList.getUUID()
Gets the UUID associated with this GraveList.void
setInventory
(org.bukkit.inventory.Inventory inventory) Sets the inventory for this GraveList.
-
Field Details
-
uuid
-
graveList
-
inventory
private org.bukkit.inventory.Inventory inventory
-
-
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:
getInventory
in 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.
-