Package-level declarations

Functions

Link copied to clipboard

Converts an integer into a boolean.

Link copied to clipboard
fun Boolean?.asInt(): Int

Returns this boolean as an integer.

Link copied to clipboard
fun Enum<*>.formatted(separator: String = " ", capitalize: Boolean = true): String
Link copied to clipboard
fun MiniMessage.lazyPlaceholder(input: String, template: Array<out Pair<String, () -> Any>>): Component
Link copied to clipboard
infix fun Component.message(audience: Audience)

Sends this message as a chat message to the audience of players.

Link copied to clipboard
@JvmName(name = "msgAudienceArray")
infix fun Array<ComponentLike>.msg(audience: Audience)
@JvmName(name = "msgAudienceCollection")
infix fun Collection<ComponentLike>.msg(audience: Audience)
@JvmName(name = "msgAudience")
infix fun ComponentLike.msg(audience: Audience)
Link copied to clipboard
inline fun <T : Component> T.noItalic(): T

Removes the italic from text.

Link copied to clipboard
fun Option<Boolean>.orFalse(): Boolean
Link copied to clipboard
fun Option<Boolean>.orTrue(): Boolean
Link copied to clipboard
fun Array<String>.parse(): Array<Component>
fun String.parse(): Component
fun Collection<String>.parse(): List<Component>

inline fun MiniMessage.parse(input: String, italic: Boolean = false, builder: Component.() -> Unit = {}): Component

Parses a string into a component.

Link copied to clipboard

A random value from this range's min to max, or the minimum value if max is smaller or equal to min.

Link copied to clipboard
fun Double.round(decimals: Int): Double
Link copied to clipboard
@JvmName(name = "sendAudienceArray")
infix fun Audience.send(messages: Array<ComponentLike>)
@JvmName(name = "sendAudienceCollection")
infix fun Audience.send(messages: Collection<ComponentLike>)
@JvmName(name = "sendAudience")
infix fun Audience.send(message: ComponentLike)
Link copied to clipboard
inline fun MiniMessage.template(input: String, vararg template: Pair<String, *>, builder: Component.() -> Unit = {}): Component

Parses a string into a component.