Faelib APIs
This module is a collection of frequently used code that is applied in most of my Minecraft modifications.
Main Features
Includes several key APIs:
- Simplified ImGui for Fabric - based on FlorianMichael's implementation with essential functionality
- Item Rendering APIs - allows displaying arbitrary models when visualizing items or completely disabling standard rendering of base items
- Similar approach is used in Geckolib, but implemented without dependency on it
- Vanilla-style GUI widgets - procedurally generated interface elements
- Box-type Widget containers - convenient system for organizing interface elements
Important Information
Implementation of any API may change in any version, so it's recommended to be careful when using this library as a dependency in your projects. Some versions may be non-functional - discovered faulty builds will be removed or updated.
How to Include
// gradle.properties
...
imgui_version=(see version in left tab)
...
// build.gradle
dependencies {
modImplementation [faelib api repository]
// The following dependencies are only required if you need ImGui API functionality
// Main libraries are already 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-nacos:${project.imgui_version}")
}