Class GUIContentsProvider.GUIContentsResponse

java.lang.Object
me.eddie.inventoryguiapi.gui.contents.GUIContentsProvider.GUIContentsResponse
Enclosing interface:
GUIContentsProvider

public static class GUIContentsProvider.GUIContentsResponse extends Object
The calculated result of a call to GUIContentsProvider.genContents(Player, int, GUISession, Callback) An instance of this object should be passed to Callback.call(Object) on the callback provided with genContents.
  • Constructor Details

    • GUIContentsResponse

      public GUIContentsResponse(boolean hasNextPage, List<GUIElement> elements)
      Create a new GUIContentsResponse
      Parameters:
      hasNextPage - True if the GUI should display another page after this, False otherwise
      elements - The GUIElements to be displayed on this page of the GUI
  • Method Details

    • create

      public static GUIContentsProvider.GUIContentsResponse create(boolean hasNextPage, List<GUIElement> elements)
      Create a new GUIContentsResponse
      Parameters:
      hasNextPage - True if the GUI should display another page after this, False otherwise
      elements - The GUIElements to be displayed on this page of the GUI
      Returns:
      The created GUIContentsResponse
    • hasNextPage

      public boolean hasNextPage()
    • setHasNextPage

      public void setHasNextPage(boolean hasNextPage)
    • getElements

      public List<GUIElement> getElements()
    • setElements

      public void setElements(List<GUIElement> elements)