moire
moire 是一个 Kotlin 库,为 polymer-virtual-entity 提供了扩展函数和 DSL。使用 moire,你可以轻松地创建和管理 ElementHolder 实例。
注意: API 在 1.0.0 版本之前可能会发生不兼容的变更。请注意潜在的更改。
Gradle 配置
Groovy
repositories {
maven { url 'https://maven.nucleoid.xyz/' }
maven { url 'https://api.modrinth.com/maven' }
}
dependencies {
modImplementation 'eu.pb4:polymer-virtual-entity:POLYMER_VERSION'
modImplementation 'maven.modrinth:moire:MOIRE_VERSION'
}
Kotlin DSL
repositories {
maven("https://maven.nucleoid.xyz/")
maven("https://api.modrinth.com/maven")
}
dependencies {
modImplementation("eu.pb4:polymer-virtual-entity:POLYMER_VERSION")
modImplementation("maven.modrinth:moire:MOIRE_VERSION")
}
用法
以下是一个简单的示例。
import jp.fishmans.moire.elements.*
import jp.fishmans.moire.matrices.rotateLocalYDegrees
import net.minecraft.item.Items
fun create() = elementHolder {
itemDisplayElement {
transformation {
scaleLocal(0.5f)
}
onTick {
transform {
rotateLocalYDegrees(11.25f)
}
startInterpolationIfDirty(1)
}
item = Items.TNT.defaultStack
teleportDuration = 1
}
}
moire
moire is a Kotlin library providing extension functions and a DSL
for polymer-virtual-entity. With moire, you can easily create and manage
ElementHolder instance.
Note: The API is subject to change without backward compatibility until version 1.0.0. Please be aware of potential changes.
Gradle Setup
Groovy
repositories {
maven { url 'https://maven.nucleoid.xyz/' }
maven { url 'https://api.modrinth.com/maven' }
}
dependencies {
modImplementation 'eu.pb4:polymer-virtual-entity:POLYMER_VERSION'
modImplementation 'maven.modrinth:moire:MOIRE_VERSION'
}
Kotlin DSL
repositories {
maven("https://maven.nucleoid.xyz/")
maven("https://api.modrinth.com/maven")
}
dependencies {
modImplementation("eu.pb4:polymer-virtual-entity:POLYMER_VERSION")
modImplementation("maven.modrinth:moire:MOIRE_VERSION")
}
Usage
Here is a simple example.
import jp.fishmans.moire.elements.*
import jp.fishmans.moire.matrices.rotateLocalYDegrees
import net.minecraft.item.Items
fun create() = elementHolder {
itemDisplayElement {
transformation {
scaleLocal(0.5f)
}
onTick {
transform {
rotateLocalYDegrees(11.25f)
}
startInterpolationIfDirty(1)
}
item = Items.TNT.defaultStack
teleportDuration = 1
}
}
版本游戏版本平台发布时间本站下载
正式版
0.4.6
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.4.5
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.4.4
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.4.3
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.4.2
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.4.1
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.4.0
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.3.10
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.3.9
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
正式版
0.3.8
1.21.4 Fabric 1 年前 ·
0
1.21.4
Fabric
1 年前
0
下载 moire
0.4.6
正式版
2025-02-10
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
模组
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
270
模组
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
229
模组
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
181
模组
AAA Particles
ChloePrime
适用于 MC 1.18+ 的 Effekseer 加载器
前置装饰
181
模组
开放派对与认领Open Parties and Claims
thexaero
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
前置实用
153
评论 0
登录后参与评分
还没有评论,来抢沙发吧