2023-01-28 11:32:16 +00:00
|
|
|
@file:Suppress("PackageDirectoryMismatch")
|
|
|
|
|
2023-01-28 14:41:10 +00:00
|
|
|
package xyz.xenondevs.invui.window.type.context
|
2023-01-28 11:32:16 +00:00
|
|
|
|
|
|
|
import net.kyori.adventure.text.Component
|
2023-01-28 14:41:10 +00:00
|
|
|
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))
|