跳到正文

Marrow

作者:naomi

arrow-kt libraries bundled for Minecraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Marrow

maven-releases-badge
maven-nightly-badge
modrinth-badge
curseforge-badge
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
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
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)
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-core
  • io.arrow-kt:arrow-core-serialization
  • io.arrow-kt:arrow-fx-coroutines
  • io.arrow-kt:arrow-fx-stm
  • io.arrow-kt:arrow-annotations
  • io.arrow-kt:arrow-atomic
  • io.arrow-kt:arrow-collectors
  • io.arrow-kt:arrow-optics
  • io.arrow-kt:arrow-resilience

常见问题

Marrow 支持哪些 Minecraft 版本?

Marrow 支持 Minecraft Java 版 1.20.1–1.21.8,共 15 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Marrow 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

naomi 的其他作品

查看全部 →