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

net.chestmc.common.extensions.Texts.kt Maven / Gradle / Ivy

package net.chestmc.common.extensions

import net.md_5.bungee.api.chat.TextComponent

/**
 * Creates a new empty text component.
 */
fun emptyText(): TextComponent {
  return TextComponent("")
}

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy