Module technology.sola.engine
Interface GuiNavigationScreen<Element extends GuiElement<?,Element>,Payload>
- Type Parameters:
Element- theGuiElementtype for the root elementPayload- the payload type for the screen
- All Known Subinterfaces:
GuiNavigatorScreenWithoutPayload<Element>
GuiNavigationScreen is a screen that can be navigated to via
GuiNavigator.navigate(java.lang.Class<T>). Screens define a
GuiNavigationScreen type that they receive when a user navigates to them.-
Method Summary
Modifier and TypeMethodDescriptionvoidonNavigate(Element element, Payload payload) Called when a user navigates to the screen.
-
Method Details
-
getPayloadType
- Returns:
- the payload type for the screen
-
rootElement
Element rootElement()- Returns:
- the root element for the screen
-