Class GUICore

java.lang.Object
net.jeqo.bloons.gui.GUICore

public class GUICore extends Object
A class to interact with th entirety of the GUI system
  • Constructor Summary

    Constructors
    Constructor
    Description
    GUICore(org.bukkit.plugin.java.JavaPlugin plugin)
    Creates a new instance of the GUI core
    GUICore(org.bukkit.plugin.java.JavaPlugin plugin, ArrayList<GUI> guis)
    Creates a new instance of the GUI core with a list of GUIs
    GUICore(org.bukkit.plugin.java.JavaPlugin plugin, GUI... guis)
    Creates a new instance of the GUI core with a list of GUIs
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closeGUI(GUI gui, org.bukkit.entity.Player player)
    Closes a GUI for the specified player
    void
    openGUI(GUI gui, org.bukkit.entity.Player player)
    Opens a GUI to the specified player
    void
    Registers a GUI to the GUI core
    void
    Unregisters a GUI from the GUI core

    Methods inherited from class java.lang.Object

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

    • GUICore

      public GUICore(org.bukkit.plugin.java.JavaPlugin plugin)
      Creates a new instance of the GUI core
      Parameters:
      plugin - The plugin to register the GUIs to, type org.bukkit.plugin.java.JavaPlugin
    • GUICore

      public GUICore(org.bukkit.plugin.java.JavaPlugin plugin, GUI... guis)
      Creates a new instance of the GUI core with a list of GUIs
      Parameters:
      plugin - The plugin to register the GUIs to, type org.bukkit.plugin.java.JavaPlugin
      guis - The GUIs to register, type net.jeqo.bloons.gui.GUI...
    • GUICore

      public GUICore(org.bukkit.plugin.java.JavaPlugin plugin, ArrayList<GUI> guis)
      Creates a new instance of the GUI core with a list of GUIs
      Parameters:
      guis - The list of GUIs to register, type java.util.ArrayList[net.jeqo.bloons.gui.GUI]
  • Method Details

    • registerGUI

      public void registerGUI(GUI gui)
      Registers a GUI to the GUI core
      Parameters:
      gui - The GUI to register, type net.jeqo.bloons.gui.GUI
    • unregisterGUI

      public void unregisterGUI(GUI gui)
      Unregisters a GUI from the GUI core
      Parameters:
      gui - The GUI to unregister, type net.jeqo.bloons.gui.GUI
    • openGUI

      public void openGUI(GUI gui, org.bukkit.entity.Player player)
      Opens a GUI to the specified player
      Parameters:
      gui - The GUI to open, type net.jeqo.bloons.gui.GUI
      player - The player to open the GUI to, type org.bukkit.entity.Player
    • closeGUI

      public void closeGUI(GUI gui, org.bukkit.entity.Player player)
      Closes a GUI for the specified player
      Parameters:
      gui - The GUI to close, type net.jeqo.bloons.gui.GUI
      player - The player to close the GUI for, type org.bukkit.entity.Player