Package net.axay.kspigot.chat

Types

KColors
Link copied to clipboard
open class KColors
KSpigotComponentBuilder
Link copied to clipboard
class KSpigotComponentBuilder
LiteralTextBuilder
Link copied to clipboard
class LiteralTextBuilder(internalText: BaseComponent)

Functions

chatComponent
Link copied to clipboard
inline fun chatComponent(builder: KSpigotComponentBuilder.() -> Unit): Array<out BaseComponent>
clickEvent
Link copied to clipboard
fun BaseComponent.clickEvent(action: ClickEvent.Action, value: String)
col
Link copied to clipboard
fun col(rgb: Int): ChatColor
Creates a new ChatColor instance from the provided hex code.
fun col(hex: String): ChatColor
Creates a new ChatColor instance from the provided hex code.
hoverEventEntity
Link copied to clipboard
fun BaseComponent.hoverEventEntity(type: String, id: String, baseComponent: BaseComponent)
hoverEventItem
Link copied to clipboard
fun BaseComponent.hoverEventItem(id: String, count: Int, tag: ItemTag)
hoverEventText
Link copied to clipboard
inline fun BaseComponent.hoverEventText(builder: KSpigotComponentBuilder.() -> Unit)
literalText
Link copied to clipboard
inline fun literalText(baseText: String = "", builder: LiteralTextBuilder.() -> Unit = { }): TextComponent
sendMessage
Link copied to clipboard
fun CommandSender.sendMessage(vararg components: BaseComponent)
fun CommandSender.sendMessage(builder: KSpigotComponentBuilder.() -> Unit)
sendText
Link copied to clipboard
inline fun CommandSender.sendText(baseText: String = "", crossinline builder: LiteralTextBuilder.() -> Unit = { })