ScreenAPI
ModMakes screen making easier for mod developers
Type
Mod
Modrinth Downloads
1,050
Modrinth ID
BG4c0cQz
Last Updated
Aug 15, 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
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Thin Air (abandoned)
Adds thin air to mountains.
Water from Cactus
An addon for thirst was taken, now you can collect water from cacti with terracotta bowls.
Rarity Tooltips
This datapack customises item tooltips to reflect their rarity.
WeatherDisplay
Displays the current weather in your world
Modern Food
The Mod That Adds More Food to the Game
Create Aeronautics: Claims FTB Fork
A Fork of Create Aeronautics: Claims to work with FTB System instead of OpenPAC