Class GUIContentsProvider.GUIContentsResponse
java.lang.Object
me.eddie.inventoryguiapi.gui.contents.GUIContentsProvider.GUIContentsResponse
- Enclosing interface:
- GUIContentsProvider
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 Summary
ConstructorsConstructorDescriptionGUIContentsResponse(boolean hasNextPage, List<GUIElement> elements) Create a new GUIContentsResponse -
Method Summary
Modifier and TypeMethodDescriptioncreate(boolean hasNextPage, List<GUIElement> elements) Create a new GUIContentsResponsebooleanvoidsetElements(List<GUIElement> elements) voidsetHasNextPage(boolean hasNextPage)
-
Constructor Details
-
GUIContentsResponse
Create a new GUIContentsResponse- Parameters:
hasNextPage- True if the GUI should display another page after this, False otherwiseelements- 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 otherwiseelements- 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
-
setElements
-