Mod
DearImGui
No reviews yet
A library mod providing a means of using ImGui within Minecraft
Provides a framework or library for other mods to use.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
DearImGui for Minecraft
A basic library mod giving developers the ability to use ImGui within Minecraft.
Usage
Setup
You need to add it as a dependency in your build.gradle(.kts) file.
repositories {
maven("https://maven.deftu.dev/snapshots")
}
dependencies {
modImplementation("dev.deftu:dearimguimc-<MINECRAFTVERSION>-fabric:<VERSION>")
}
Of course, replace <MINECRAFTVERSION> with the version of Minecraft you are developing for, and <VERSION> with the version of the library you want to use.
Rendering
To render for ImGui, you need to create your own DearImGuiEntrypoint and add it to your fabric.mod.json file,
{
"entrypoints": {
"imgui": ["your.package.here.DearImGuiEntrypoint"]
}
}
DearImGuiEntrypoint has two methods you can override - createRenderer and render.
public class ExampleDearImGuiEntrypoint implements DearImGuiEntrypoint {
@Override
public ImGuiRenderer createRenderer() {
return new ExampleImGuiRenderer();
}
@Override
public void render() {
// Render ImGui here
}
}
Both ultimately achieve the same goal, but createRenderer is more flexible and allows you to pass in additional parameters to your renderer.
Example Rendering
public class ExampleImGuiRenderer implements ImGuiRenderer {
@Override
public void render() {
ImGui.showDemoWindow();
}
}
public class ExampleDearImGuiEntrypoint implements DearImGuiEntrypoint {
@Override
public void render() {
ImGui.showDemoWindow();
}
}
This project is licensed under LGPL-3.0
© 2024 Deftu
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers


