Ui
open class Ui(val player: Player, val shouldCloseInventory: Boolean = true, val onBuild: UiModel.() -> Unit = {}) : Listener
Representation of a UI that will be shown to a player
Parameters
player
the player that should see the UI
shouldCloseInventory  
whether the UI should be able to be closed by the player or not (usually when pressing the ESC or inventory key)
onBuild 
the function that will be called when the UI is built