Package-level declarations

Contains different utilities related to chat component manipulations

Types

Link copied to clipboard
object ComponentTypeAdapter : TypeAdapter<Component>

Adapter for fancy json serialization of components

Link copied to clipboard
object Formatting

Object, used for fancy formatting of numbers

Functions

Link copied to clipboard
fun String.capitalized(separator: String = " "): String

Capitalizes a string, by first converting it to lower case and then converting to upper case the first character inside

Link copied to clipboard
fun Component.noitalic(): @NotNull Component

A simple function to inline removing the italic formatting from the text component

Link copied to clipboard
fun String.reduceToList(preferredLength: Int = 31): List<String>

Attempts to sanely partition a string to list of strings, where each string's length is bounded by preferredLength