Marrow
作者:rebot | 分类:模组
Minecraft 版本: 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8
平台: neoforge
标签: library utility
Marrow
Minecraft mod that bundles Arrow for ease-of-use and installation.
Usage
Simply add it as a dependency to your Gradle project like so:
Groovy ```groovy repositories { mavenCentral() maven("https://maven.is-immensely.gay/nightly") } dependencies { def variantAttribute = Attribute.of("earth.terrarium.cloche.modLoader", String::class) modImplementation("xyz.naomieow:marrow:2.1.2") { attributes { // "fabric" for fabric // "forge" for forge // "neoforge" for neoforge attribute(variantAttribute, "fabric") } } } ``` Kotlin DSL ```kts repositories { mavenCentral() maven("https://maven.is-immensely.gay/nightly") } dependencies { val variantAttribute = Attribute.of("earth.terrarium.cloche.modLoader", String::class.java) modImplementation("xyz.naomieow:marrow:2.1.2") { attributes { // "fabric" for fabric // "forge" for forge // "neoforge" for neoforge attribute(variantAttribute, "fabric") } } } ``` Kotlin DSL (Cloche) ```kts repositories { mavenCentral() maven("https://maven.is-immensely.gay/nightly") } common { dependencies { modImplementation("xyz.naomieow:marrow:2.1.2") } } ```And then you should have access to Arrow in your project:
val example: Either<String, Int> = Either.Left("Hello world!")
Versioning
Marrow tracks the upstream version of Arrow, which is why the initial release is tagged
as version 2.1.2. If you ever find Marrow to be outdated, please create an issue or
contact me on Discord.
Bundled Libraries
io.arrow-kt:arrow-coreio.arrow-kt:arrow-core-serializationio.arrow-kt:arrow-fx-coroutinesio.arrow-kt:arrow-fx-stmio.arrow-kt:arrow-annotationsio.arrow-kt:arrow-atomicio.arrow-kt:arrow-collectorsio.arrow-kt:arrow-opticsio.arrow-kt:arrow-resilience
请登录后举报
暂无评论,抢个沙发吧~