All Downloads are FREE. Search and download functionalities are using the official Maven repository.

walkmc.extensions.Texts.kt Maven / Gradle / Ivy

@file:Suppress("NOTHING_TO_INLINE")

package walkmc.extensions

import net.md_5.bungee.api.chat.*

/**
 * Creates a new empty text component.
 */
inline fun emptyText(): TextComponent = TextComponent("")

/**
 * Creates a new text component with the specified message.
 */
inline fun newText(message: String): TextComponent = TextComponent(message)

/**
 * Creates a new text component with the specified message and transformer.
 */
inline fun newText(message: String, transform: TextComponent.() -> Unit): TextComponent =
   TextComponent(message).apply(transform)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy