Class GUI

java.lang.Object
Kyu.GuiAPI_Redone.GUI

public class GUI extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    GUI(org.bukkit.entity.Player holder, org.bukkit.plugin.java.JavaPlugin plugin)
    Create a new GUI component
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.Player
     
    org.bukkit.plugin.java.JavaPlugin
     
    void
     
    void
    Unregisters the Window Listener, not recommended to call while a window is still open, as this breaks most of the functionality

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Inventory
      plugin - Your Plugin
  • Method Details

    • openWindow

      public void openWindow(Openable window)
      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