TextUtil

open class TextUtil

Functions

errorText
Link copied to clipboard
open fun errorText(key: String, insertedText: Array<String>): MutableComponent
fromNbtElement
Link copied to clipboard
open fun fromNbtElement(textNbtElement: Tag): MutableComponent
Creates a MutableComponent from Tag.
joinText
Link copied to clipboard
open fun joinText(key: String, messageColor: ChatFormatting, insertedTextColor: ChatFormatting, insertedString: Array<String>): MutableComponent
Inserts colored insertedText in string message.
successText
Link copied to clipboard
open fun successText(key: String, insertedText: Array<String>): MutableComponent
toNbtElement
Link copied to clipboard
open fun toNbtElement(text: Component): Tag
Converts Component to Tag.
translate
Link copied to clipboard
open fun translate(key: String, args: Array<Any>): MutableComponent
Gets the text for the given language key.