cornea
Kotlin DSL for polymer-virtual-entity
- Загрузки
- 858
- Подписчики
- 1
- Обновлён
- 18 апреля 2026 г.
- Лицензия
- Apache-2.0
Опубликован 21 февраля 2026 г.
cornea
A library that provides Kotlin DSL and extension functions for polymer-virtual-entity. It allows you to write elements and element holders in DSL style and use useful extension functions.
Note: Until version 1.0.0, the API may change without prior notice.
Gradle Setup
Kotlin
repositories {
mavenCentral()
}
dependencies {
modImplementation("io.github.kouvali:cornea:YOUR_VERSION")
}
Groovy
repositories {
mavenCentral()
}
dependencies {
modImplementation "io.github.kouvali:cornea:YOUR_VERSION"
}
Usage
Here's a quick example:
fun create() = elementHolder {
blockDisplayElement {
transformation {
translateLocal(-0.5f, -0.5f, -0.5f)
scaleLocal(0.75f)
}
onTick {
transform {
rotateLocalY(11.25f.toRadians())
}
startInterpolation(1)
}
blockState = Blocks.CAKE.defaultState
}
}
Ченджлог
0.55.0Релиз26.1.2 · 18 апреля 2026 г.
No changelog was specified.
0.54.0Релиз26.1.1 · 3 апреля 2026 г.
No changelog was specified.
0.53.0Релиз26.1 · 31 марта 2026 г.
No changelog was specified.
0.52.0Релиз26.1-rc-2 · 25 марта 2026 г.
No changelog was specified.
0.51.0Релиз26.1-rc-2 · 23 марта 2026 г.
No changelog was specified.
0.50.0Релиз1.21.11 · 28 февраля 2026 г.
No changelog was specified.
0.49.1Релиз1.21.11 · 27 февраля 2026 г.
No changelog was specified.
0.49.0Релиз1.21.11 · 24 февраля 2026 г.
No changelog was specified.
Комментарии
Загружаем…