Package eu.xap3y.xagui.interfaces
Interface VirtualMenuInterface<T>
- Type Parameters:
T- context type used to (re)build the GUI
- All Known Implementing Classes:
VirtualMenu
public interface VirtualMenuInterface<T>
Contract for data-driven (contextual) GUI builders.
Implementations are expected to adapt or populate a GUI using a context object T
and return a GuiMenuInterface ready to be shown.
-
Method Summary
Modifier and TypeMethodDescription@NotNull GuiMenuInterfaceBuild (or reconfigure) a GUI using the provided context object.
-
Method Details
-
build
Build (or reconfigure) a GUI using the provided context object.- Parameters:
t- non-null context object- Returns:
- a non-null
GuiMenuInterfacerepresenting the final GUI state
-