Package com.ranull.graves.manager
Class GUIManager
java.lang.Object
com.ranull.graves.manager.GUIManager
The GUIManager class is responsible for managing the graphical user interfaces related to graves.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGUIManager
(Graves plugin) Initializes a new instance of the GUIManager class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
openGraveList
(org.bukkit.entity.Entity entity) Opens the grave list for an entity.void
openGraveList
(org.bukkit.entity.Entity entity, boolean sound) Opens the grave list for an entity with a sound option.void
openGraveList
(org.bukkit.entity.Entity entity, UUID uuid) Opens the grave list for an entity based on a UUID.void
openGraveList
(org.bukkit.entity.Entity entity, UUID uuid, boolean sound) Opens the grave list for an entity based on a UUID with a sound option.void
openGraveList
(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity entity2) Opens the grave list for an entity based on another entity's UUID.void
openGraveMenu
(org.bukkit.entity.Entity entity, Grave grave) Opens the grave menu for an entity and grave.void
openGraveMenu
(org.bukkit.entity.Entity entity, Grave grave, boolean sound) Opens the grave menu for an entity and grave with a sound option.void
Refreshes the menus for all online players.void
setGraveListItems
(org.bukkit.inventory.Inventory inventory, List<Grave> graveList) Sets the grave list items in the inventory based on a list of graves.void
setGraveListItems
(org.bukkit.inventory.Inventory inventory, UUID uuid) Sets the grave list items in the inventory based on a UUID.void
setGraveMenuItems
(org.bukkit.inventory.Inventory inventory, Grave grave) Sets the grave menu items in the inventory based on a grave.
-
Field Details
-
plugin
-
-
Constructor Details
-
GUIManager
Initializes a new instance of the GUIManager class.- Parameters:
plugin
- The plugin instance.
-
-
Method Details
-
openGraveList
public void openGraveList(org.bukkit.entity.Entity entity) Opens the grave list for an entity.- Parameters:
entity
- The entity to open the grave list for.
-
openGraveList
public void openGraveList(org.bukkit.entity.Entity entity, boolean sound) Opens the grave list for an entity with a sound option.- Parameters:
entity
- The entity to open the grave list for.sound
- Whether to play a sound.
-
openGraveList
public void openGraveList(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity entity2) Opens the grave list for an entity based on another entity's UUID.- Parameters:
entity
- The entity to open the grave list for.entity2
- The entity whose UUID will be used.
-
openGraveList
Opens the grave list for an entity based on a UUID.- Parameters:
entity
- The entity to open the grave list for.uuid
- The UUID to use.
-
refreshMenus
public void refreshMenus()Refreshes the menus for all online players. -
openGraveList
Opens the grave list for an entity based on a UUID with a sound option.- Parameters:
entity
- The entity to open the grave list for.uuid
- The UUID to use.sound
- Whether to play a sound.
-
setGraveListItems
Sets the grave list items in the inventory based on a UUID.- Parameters:
inventory
- The inventory to set the items in.uuid
- The UUID to use.
-
setGraveListItems
Sets the grave list items in the inventory based on a list of graves.- Parameters:
inventory
- The inventory to set the items in.graveList
- The list of graves to use.
-
openGraveMenu
Opens the grave menu for an entity and grave.- Parameters:
entity
- The entity to open the grave menu for.grave
- The grave to open the menu for.
-
openGraveMenu
Opens the grave menu for an entity and grave with a sound option.- Parameters:
entity
- The entity to open the grave menu for.grave
- The grave to open the menu for.sound
- Whether to play a sound.
-
setGraveMenuItems
Sets the grave menu items in the inventory based on a grave.- Parameters:
inventory
- The inventory to set the items in.grave
- The grave to use.
-