InvUI/invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/adventure/AdventureWindowContexts.kt
2023-01-28 15:41:10 +01:00

11 lines
350 B
Kotlin

@file:Suppress("PackageDirectoryMismatch")
package xyz.xenondevs.invui.window.type.context
import net.kyori.adventure.text.Component
import xyz.xenondevs.inventoryaccess.component.AdventureComponentWrapper
/**
* Sets the title of the window.
*/
fun AbstractWindowContext<*>.setTitle(title: Component) = setTitle(AdventureComponentWrapper(title))