Ui

constructor(player: Player, shouldCloseInventory: Boolean = true, onBuild: UiModel.() -> Unit = {})

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