-
Notifications
You must be signed in to change notification settings - Fork 0
Home
SpiDrone edited this page Jul 24, 2026
·
6 revisions
A lightweight library mod for drawing custom fonts, styled text, and sprite sheet animations in Minecraft GUIs.
without mixins
- Adding Fonts - register a custom .ttf through a normal resource pack font definition
- Drawing Text - UIGraphicsHelper: alignment, color effects, motion effects, bounding box wrapping, width measuring
- Animated Textures - UIAnimationManager: playing sprite sheet animations in a GUI
ResourceLocation myFont = ResourceLocation.fromNamespaceAndPath("mymod", "myfont");
// Centered, rainbow colored title with a wave
UIGraphicsHelper.drawCustomFont(graphics, myFont, "Welcome!", screenWidth / 2, 20,
ComponentEffects.rainbow(), ComponentEffects.wave(), false, TextAlign.CENTER);
// A looping 8 frame fire icon animation
UIAnimationManager.drawGif(graphics, "mymod:textures/gui/anim_fire.png",
x, y, 32, 32, 8, 12);Check the pages above for everything else.