Module technology.sola.engine
Interface GuiNavigatorScreenWithoutPayload<Element extends GuiElement<?,Element>>
- Type Parameters:
Element
- theGuiElement
type for the root element
- All Superinterfaces:
GuiNavigationScreen<Element,
Void>
@NullMarked
public interface GuiNavigatorScreenWithoutPayload<Element extends GuiElement<?,Element>>
extends GuiNavigationScreen<Element,Void>
GuiNavigatorScreenWithoutPayload is a screen that can be navigated to via
GuiNavigator.navigate(java.lang.Class<T>)
. This screen
does not receive a payload when navigated to.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onNavigate
(Element element) Called when a user navigates to the screen.default void
onNavigate
(Element element, Void unused) Called when a user navigates to the screen.Methods inherited from interface technology.sola.engine.graphics.gui.navigation.GuiNavigationScreen
rootElement
-
Method Details
-
getPayloadType
- Specified by:
getPayloadType
in interfaceGuiNavigationScreen<Element extends GuiElement<?,
Element>, Void> - Returns:
- the payload type for the screen