cornea

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.55.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/cornea
资源信息

Minecraft 版本: 26.1.2

平台: fabric

标签: library

资源介绍

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
    }
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Dream Luck

价格:0 墨喵币
下载量:0

查看详情
Better Netherite and Smithing Crafting Recipe(BNASCR)

价格:0 墨喵币
下载量:0

查看详情
Giant Oak Tree

价格:0 墨喵币
下载量:0

查看详情
HailWall

价格:0 墨喵币
下载量:0

查看详情