Skip to content

ScreenAPI

Makes screen making easier for me

Fabric
Loaders
Fabric
Downloads on Modrinth
1.1K
Followers on Modrinth
0
versions
21
Updated
September 18, 2026Sep 18
Published
in 2026

At a glance

Runs on Fabric
For Minecraft 1.21.9–26.3
Client only — no need to install it on the server
Latest version — 1.0.0-alpha.5+26.1 from September 18, 2026
License MIT — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21.9–26.3

ScreenAPI

Time

i got so upset trying to make the math mathing in scroll

build.gradle

repositories {
    maven { url "https://api.modrinth.com/maven" }
}

dependencies {
   implementation "maven.modrinth:screenapi:${project.screenapi_version}"
}

API usage

package me.you.yourprojectwhichusesscreens.screens;

import hu.jgj52.screenapi.screen.BetterScreen;
import net.minecraft.client.gui.Font;
import net.minecraft.client.gui.GuiGraphicsExtractor;
import net.minecraft.client.gui.components.StringWidget;
import net.minecraft.network.chat.Component;

public class YourScreen extends BetterScreen {
    @Override
    protected int getScrollSpeed() {
        return 10;
    }

    @Override
    public void render(GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, float partialTick) {
        // just like render method in yarn
        StringWidget stringWidget = getWidget("widget id", StringWidget.class); // will return null if its not StringWidget
    }

    @Override
    protected void createWidgets(Font font) {
        widget(new StringWidget(
                10,
                20,
                font.width("cat"),
                font.lineHeight,
                Component.literal("cat"),
                font
        ), "widget id"); // with widget id you can later get that widget using getWidget(), just like in render
    }
}

FAQ

How to install ScreenAPI?

Install Fabric for your Minecraft version, download ScreenAPI for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does ScreenAPI support?

ScreenAPI has builds for Minecraft 1.21.9–26.3.

Is ScreenAPI needed on the server?

Client only — no need to install it on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More