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, GUIClickEvent).
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets this GUI's player.
    long
    Gets this GUI's unload task's ID.
    void
    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()
      Deprecated.
      Internal use only.
      Manually unloads this GUI and removes it from GUIManager.getGUIs().