Package Kyu.GuiAPI_Redone
Class GUI
java.lang.Object
Kyu.GuiAPI_Redone.GUI
-
Constructor Summary
ConstructorsConstructorDescriptionGUI
(org.bukkit.entity.Player holder, org.bukkit.plugin.java.JavaPlugin plugin) Create a new GUI component -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.Player
org.bukkit.plugin.java.JavaPlugin
void
openWindow
(Openable window) void
Unregisters the Window Listener, not recommended to call while a window is still open, as this breaks most of the functionality
-
Constructor Details
-
GUI
public GUI(org.bukkit.entity.Player holder, org.bukkit.plugin.java.JavaPlugin plugin) Create a new GUI component- Parameters:
holder
- The Main Viewer of the Inventoryplugin
- Your Plugin
-
-
Method Details
-
openWindow
- Parameters:
window
-Openable
to open
-
unregisterListener
public void unregisterListener()Unregisters the Window Listener, not recommended to call while a window is still open, as this breaks most of the functionality -
getHolder
public org.bukkit.entity.Player getHolder()- Returns:
- The Main Viewer of the Inventory
-
getPlugin
public org.bukkit.plugin.java.JavaPlugin getPlugin()- Returns:
- The plugin the GUI is connected to
-