open

fun open()

Opens the GUI for the player by registering the GUI listener and opening the inventory. This method is called when the GUI is initialized, and it ensures that the player can interact with the GUI and that click and drag events are properly handled by the listener.