cornea
一个提供 Kotlin DSL 和扩展函数的库,用于 polymer-virtual-entity。它允许你以 DSL 风格编写元素和元素持有者,并使用有用的扩展函数。
注意:在 1.0.0 版本之前,API 可能会在未提前通知的情况下发生变化。
Gradle 设置
Kotlin
repositories {
mavenCentral()
}
dependencies {
modImplementation("io.github.kouvali:cornea:YOUR_VERSION")
}
Groovy
repositories {
mavenCentral()
}
dependencies {
modImplementation "io.github.kouvali:cornea:YOUR_VERSION"
}
用法
以下是一个快速示例:
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
}
}
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
v0.55.0
26.1.2 Fabric 7 个月前 ·
0
26.1.2
Fabric
7 个月前
0
下载 cornea
正式版
0.54.0
v0.54.0
26.1.1 Fabric 7 个月前 ·
0
26.1.1
Fabric
7 个月前
0
下载 cornea
正式版
0.53.0
v0.53.0
26.1 Fabric 7 个月前 ·
0
26.1
Fabric
7 个月前
0
下载 cornea
正式版
0.52.0
v0.52.0
26.1-rc-2 Fabric 7 个月前 ·
0
26.1-rc-2
Fabric
7 个月前
0
下载 cornea
正式版
0.51.0
v0.51.0
26.1-rc-2 Fabric 7 个月前 ·
0
26.1-rc-2
Fabric
7 个月前
0
下载 cornea
正式版
0.50.0
v0.50.0
1.21.11 Fabric 8 个月前 ·
0
1.21.11
Fabric
8 个月前
0
下载 cornea
正式版
0.49.1
v0.49.1
1.21.11 Fabric 8 个月前 ·
0
1.21.11
Fabric
8 个月前
0
下载 cornea
正式版
0.49.0
v0.49.0
1.21.11 Fabric 8 个月前 ·
0
1.21.11
Fabric
8 个月前
0
下载 cornea
正式版
0.48.0
v0.48.0
1.21.11 Fabric 8 个月前 ·
0
1.21.11
Fabric
8 个月前
0
下载 cornea
0.55.0
正式版
2026-04-18
未指定更新日志。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
模组
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
339
模组
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
239
模组
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239
模组
AAA Particles
ChloePrime
适用于 MC 1.18+ 的 Effekseer 加载器
前置装饰
186
模组
WTHIT
deirn
那是什么?一个 Waila/Hwyla 的分支。
前置实用
165
评论 0
登录后参与评分
还没有评论,来抢沙发吧