Interface PerPlayerGUI


public interface PerPlayerGUI
Represents a GUI obtained through GUIManager.createPerPlayerGUI(GUILayout, ChatPluginServerPlayer) that features a player and a task ID that unloads the GUI after GUIManager.getPerPlayerGUIsUnloadTime() of inactivity (GUIOpenEvent, EmptySlotClickEvent, IconClickEvent).
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets this GUI's player.
    long
    Gets this GUI's unload task's ID.
    void
    unload(boolean quit)
    Deprecated.
    Internal use only.
  • Method Details

    • getPlayer

      Gets this GUI's player.
      Returns:
      GUI's player
    • getUnloadTaskID

      long getUnloadTaskID()
      Gets this GUI's unload task's ID.
      Returns:
      GUI's unload task's ID
    • unload

      @Deprecated void unload(boolean quit)
      Deprecated.
      Internal use only.
      Manually unloads this GUI and removes it from GUIManager.getGUIs().
      Parameters:
      quit - Whether the player quit the server