Komponent

An easy to use, fast and lightweight Minecraft chat component library

Лицензия

Лицензия

Группа

Группа

me.bardy
Идентификатор

Идентификатор

komponent
Последняя версия

Последняя версия

1.1.1
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

Komponent
An easy to use, fast and lightweight Minecraft chat component library

Скачать komponent

Зависимости

runtime (2)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.30
org.jetbrains.kotlinx : kotlinx-serialization-json-jvm jar 1.0.1

Модули Проекта

Данный проект не имеет модулей.

Komponent

An easy to use, fast and lightweight Minecraft chat component library, written in Kotlin

Dependency

Komponent is now on Maven Central. You can retrieve it like this:

  • Gradle
repositories {
    mavenCentral()
}

dependencies {
    implementation 'me.bardy:komponent'
}

Usage

Komponent has it's own DSL, for easy component creation, in a very idiomatic way.

textComponent("I am text!") {
    color = NamedColor.BLACK
    formatting {
        bold = true
        italic = true
        underlined = false
        strikethrough = true
        obfuscated = false
    }
    insertion = "I am insertion text!"
    clickEvent = openURL("https://example.com")
    hoverEvent = showText("I am hover text!")

    translation("i.am.a.translation.key") {
        color = NamedColor.WHITE
    }

    keybind("key.forward") {
        color = Color.fromHex("#ff6600")
    }
}

Версии библиотеки

Версия
1.1.1
1.1
1.0