11 lines
350 B
Kotlin
11 lines
350 B
Kotlin
|
@file:Suppress("PackageDirectoryMismatch")
|
||
|
|
||
|
package de.studiocode.invui.window.type.context
|
||
|
|
||
|
import de.studiocode.inventoryaccess.component.AdventureComponentWrapper
|
||
|
import net.kyori.adventure.text.Component
|
||
|
|
||
|
/**
|
||
|
* Sets the title of the window.
|
||
|
*/
|
||
|
fun AbstractWindowContext<*>.setTitle(title: Component) = setTitle(AdventureComponentWrapper(title))
|