ScreenAPI
ModMakes screen making easier for mod developers
Type
Mod
Modrinth Downloads
92
Modrinth ID
BG4c0cQz
Last Updated
Jun 26, 2026
Description
ScreenAPI
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 } }Compatibility
Mod Loaders
Game Versions
Similar Mods
FSTGSteel
Mod for FSTG server
Flesh player
This small modification adds the loss of flesh from the players.
Minestuck Compat
A Minestuck addon that provides grist costs and combination recipes for various mods.
record-able
A highly configurable and helpful OBS style mod that lets you record your game session like you would on any recording s...
Nuclearism
A Mod for Minecraft Neoforge 1.21.1 that adds brand new ores machinery and nuclear tech! Similar To HBM Nuclear Tech...
Koniavacraft
Explore the fusion of magic and technology in 'Koniavacraft' and drive your arcane industrial revolution!