Skip to content
SpiDrone edited this page Jul 22, 2026 · 6 revisions

Spis UI API

A lightweight library mod for drawing custom fonts, styled text, and sprite sheet animations in Minecraft GUIs. without mixins

Pages

  • [Adding Fonts](Adding-Fonts) - register a custom .ttf through a normal resource pack font definition
  • [Drawing Text](Drawing-Text) - UIGraphicsHelper: alignment, color effects, motion effects, bounding box wrapping, width measuring
  • [Animated Textures](Animated-Textures) - UIAnimationManager: playing sprite sheet animations in a GUI

Quick Example

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.

Clone this wiki locally