of
Creates an instance of PaginatedDynamicGUI for the given enumeration class and player.
Return
A new instance of PaginatedDynamicGUI configured with the provided enum class and player.
Parameters
enum Class
The KClass of the enumeration to be used for states in the GUI.
player
The Player for whom the GUI is being created.
Kotlin-friendly version of the PaginatedDynamicGUI constructor using a reified enum type.
This function allows creating a PaginatedDynamicGUI without explicitly passing the enum class.
Example:
val gui = PaginatedDynamicGUI.of<MyGUIState>(player)
Content copied to clipboard
Return
A PaginatedDynamicGUI instance bound to the enum type S.
Parameters
S
The enum type representing the GUI state.
player
The player for whom the GUI is shown.