Class SGOpenMenu

java.lang.Object
com.samjakob.spigui.menu.SGOpenMenu

public class SGOpenMenu extends Object
Used to refer to a player's "viewing session" of a given menu.
  • Field Details

    • gui

      private final SGMenu gui
      The SGMenu that is currently open.
    • player

      private final org.bukkit.entity.Player player
      The player viewing the menu.
  • Constructor Details

    • SGOpenMenu

      public SGOpenMenu(SGMenu gui, org.bukkit.entity.Player player)
      Pairs an SGMenu instance with a player viewing that menu.
      Parameters:
      gui - The SGMenu that is open.
      player - The player viewing the menu.
  • Method Details

    • getMenu

      public SGMenu getMenu()
      Get the open SGMenu instance.
      Returns:
      The menu that is open.
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player viewing the SGMenu.
      Returns:
      The player viewing the menu.