InvUI/invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/adventure/AdventureWindowContexts.kt

12 lines
420 B
Kotlin
Raw Normal View History

2023-01-28 11:32:16 +00:00
@file:Suppress("PackageDirectoryMismatch")
package xyz.xenondevs.invui.window.type.context
2023-01-28 11:32:16 +00:00
import net.kyori.adventure.text.Component
import xyz.xenondevs.inventoryaccess.component.AdventureComponentWrapper
2023-01-28 16:55:26 +00:00
import xyz.xenondevs.invui.window.builder.AbstractWindowBuilder
2023-01-28 11:32:16 +00:00
/**
* Sets the title of the window.
*/
2023-01-28 16:55:26 +00:00
fun AbstractWindowBuilder<*, *, *>.setTitle(title: Component) = setTitle(AdventureComponentWrapper(title))