Package net.jeqo.bloons.gui
Class GUICore
java.lang.Object
net.jeqo.bloons.gui.GUICore
A class to interact with th entirety of the GUI system
-
Constructor Summary
ConstructorsConstructorDescriptionGUICore
(org.bukkit.plugin.java.JavaPlugin plugin) Creates a new instance of the GUI coreCreates a new instance of the GUI core with a list of GUIsCreates a new instance of the GUI core with a list of GUIs -
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes a GUI for the specified playervoid
Opens a GUI to the specified playervoid
registerGUI
(GUI gui) Registers a GUI to the GUI corevoid
unregisterGUI
(GUI gui) Unregisters a GUI from the GUI core
-
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
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.JavaPluginguis
- The GUIs to register, type net.jeqo.bloons.gui.GUI...
-
GUICore
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
Registers a GUI to the GUI core- Parameters:
gui
- The GUI to register, type net.jeqo.bloons.gui.GUI
-
unregisterGUI
Unregisters a GUI from the GUI core- Parameters:
gui
- The GUI to unregister, type net.jeqo.bloons.gui.GUI
-
openGUI
Opens a GUI to the specified player- Parameters:
gui
- The GUI to open, type net.jeqo.bloons.gui.GUIplayer
- The player to open the GUI to, type org.bukkit.entity.Player
-
closeGUI
Closes a GUI for the specified player- Parameters:
gui
- The GUI to close, type net.jeqo.bloons.gui.GUIplayer
- The player to close the GUI for, type org.bukkit.entity.Player
-