跳到正文

Faelib APIs

作者:Feintha

Compilation of common code shared between my mods

收藏

介绍

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

A compilation of commonly used code in all of my mods.

Includes:

  • Stripped version of FlorianMichael’s ImGui fabric mod
  • Item Rendering APIs
  • Allows you to render arbitrary models when rendering items, or disable rendering base items
  • Effectively how Geckolib handles its’ item rendering, but this doesn’t use Geckolib
  • Vanilla-style procedural GUI widgets
  • Box-type Widget containers

Implementations of any API could change with any release, so be careful depending on this mod!
Any given version could also not work. Versions found not working will be removed and/or updated.

How to include:

// gradle.properties
...
imgui_version=(see version on left tab)
...

// build.gradle
dependencies {
  modImplementation [faelib api maven]
  
// The following is only required if you need to use the ImGui API.

// The libraries themselves are included in Faelib
  compileOnly("io.github.spair:imgui-java-binding:${project.imgui_version}")
  compileOnly("io.github.spair:imgui-java-lwjgl3:${project.imgui_version}")

  compileOnly("io.github.spair:imgui-java-natives-windows:${project.imgui_version}")
  compileOnly("io.github.spair:imgui-java-natives-linux:${project.imgui_version}")
  compileOnly("io.github.spair:imgui-java-natives-macos:${project.imgui_version}")
}

常见问题

Faelib APIs 支持哪些 Minecraft 版本?

Faelib APIs 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Faelib APIs 怎么安装?

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

评论

登录后评论和评分

Feintha 的其他作品

查看全部 →