Class GUIManager

java.lang.Object
com.ranull.graves.manager.GUIManager

public final class GUIManager extends Object
The GUIManager class is responsible for managing the graphical user interfaces related to graves.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Graves
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the GUIManager class.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • plugin

      private final Graves plugin
  • Constructor Details

    • GUIManager

      public GUIManager(Graves plugin)
      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

      public void openGraveList(org.bukkit.entity.Entity entity, UUID uuid)
      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

      public 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.
      Parameters:
      entity - The entity to open the grave list for.
      uuid - The UUID to use.
      sound - Whether to play a sound.
    • setGraveListItems

      public void setGraveListItems(org.bukkit.inventory.Inventory inventory, UUID uuid)
      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

      public void setGraveListItems(org.bukkit.inventory.Inventory inventory, List<Grave> graveList)
      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

      public void openGraveMenu(org.bukkit.entity.Entity entity, Grave grave)
      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

      public void openGraveMenu(org.bukkit.entity.Entity entity, Grave grave, boolean sound)
      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

      public void setGraveMenuItems(org.bukkit.inventory.Inventory inventory, Grave grave)
      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.