Renderer
No reviews yet
An easy to use library for rendering content
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
Runs entirely on the client. Works on vanilla servers.
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
Renderer
An easy to use rendering library for modern fabric
Installing
You can install this library using Jitpack
To install the library, just add the jitpack repository to your repositories block as described on the website, and this to your dependencies block in build.gradle:
include modImplementation("com.github.0x3C50:Renderer:master-SNAPSHOT")
This will use the latest commit as build target, but will cache that build target every time. Use the latest short commit hash found on Jitpack (example: d2cc995ff4) as the version, to get that release instead.
Usage
The api has an extensive javadoc, which explains almost anything. The wiki also has some more insights and examples.
The two renderers
Renderer2d draws in 2 dimensions, on the hud. Renderer3d draws in 3 dimensions, in the world.
Events
This library has its own event system, which broadcasts some basic rendering events (hud render, world render, etc). You can find more information on the wiki
Suggestions
You can leave suggestions in the issues section
If this library helped you, please consider leaving a star, since this library took me a while to make as it is right now :)
Examples
More examples can be found in RendererClient.
class Listener {
void main() {
Events.manager.registerSubscribers(this);
}
@MessageSubscription
void onWorldRendered(RenderEvent.World world) {
// Quad at (0, 0, 0):
Renderer3d.renderFilled(world.getMatrixStack(), Color.RED, Vec3d.ZERO, new Vec3d(1, 1, 1));
// Quad outline at (0, 0, 0):
Renderer3d.renderOutline(world.getMatrixStack(), Color.RED, Vec3d.ZERO, new Vec3d(1, 1, 1));
}
@MessageSubscription
void onHudRendered(RenderEvent.Hud hud) {
// Rounded quad at (50, 50 -> 100, 100), 5 px corner, 10 samples
Renderer2d.renderRoundedQuad(RendererUtil.getEmptyMatrixStack(), Color.WHITE, 50, 50, 100, 100, 5, 10);
}
}
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