Renderer

An easy to use library for rendering content

by
3.3K Downloads
fabriclibraryutility
Rent Server with this Mod

About this Mod

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);
    }
}

Available Versions

Renderer 1.1release
MC 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4fabric
February 27, 2024
Renderer 1.0release
MC 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4fabric
March 15, 2023
Initial releaserelease
MC 1.18.2fabric
April 10, 2022

How to Install Renderer on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.4).

3

Install Mod

Open the mod browser in the dashboard and search for "Renderer". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.4, 1.20.3, 1.20.2 (+8 more)

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Renderer server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.4). You can switch loaders with one click in the panel.

Is Renderer compatible with fabric?

Renderer officially supports fabric for Minecraft 1.20.4, 1.20.3, 1.20.2. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Renderer – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Renderer consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Renderer with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Unsupported

Supported Versions

1.20.41.20.31.20.21.20.11.201.19.41.19.31.19.21.19.11.19+1 more