Smoothiez API

Smoothiez API

Smootheez所有模组的样板代码Minecraft模组。

基础库

Smoothiez API

一个基础库模组,作为 Smootheez 所有其他模组的支柱。 它提供共享工具、通用逻辑和必要的后端功能,以简化模组开发并确保项目间的一致性。

使用概览

虽然 Smoothiez API 最初是为 Smootheez 的个人项目开发的,但如果它符合你的需求,欢迎你在自己的模组中使用或整合它。

项目设置

  1. 克隆仓库

    git clone https://github.com/Smootheez/Smoothiez-Api.git
    
  2. 构建所需模块

    • 对于首次构建,运行:

      ./gradlew :1.21.9:build
      

      将 1.21.9 替换为目标子模块名称(例如,你的模组所依赖的版本)。

    • 需要构建的模块取决于 example 模块所使用的模块。

  3. 构建后,在你的 IDE(例如 IntelliJ IDEA)中重新加载 Gradle 项目。

在你的模组中使用 Smoothiez API

  1. 发布到你的本地 Maven 仓库

    ./gradlew :1.21.9:publishToMavenLocal
    

    同样,将 1.21.9 替换为你之前构建的模块。

  2. 在你的模组的 build.gradle.kts 中添加 Smoothiez API 作为依赖:

    repositories {
        mavenLocal()
    }
    
    dependencies {
        modApi("io.github.smootheez:smoothiezapi:0.1.0+1.21.9")
        // 或者使用变量以增强灵活性:
        modApi("io.github.smootheez:smoothiezapi:${smoothiezApiVersion}")
    }
    

下载

Modrinth Curseforge
Smoothiez API Smoothiez API

问题追踪器

发现了一个 Bug 或有功能请求?请在此处报告:GitHub Issues

支持我

如果你喜欢这个模组并想支持我的工作,可以考虑捐赠:

ko-fi paypal