Unified UI framework for Minecraft clients on Fabric (Minecraft 26.1.2)
Find a file
lily 7e2688404e
Some checks failed
CI / build (push) Failing after 6m8s
Forgejo runners
2026-08-24 18:09:47 -04:00
.forgejo/workflows Forgejo runners 2026-08-24 18:09:47 -04:00
docs init commit 2026-07-10 01:43:19 -04:00
example init commit 2026-07-10 01:43:19 -04:00
gradle/wrapper init commit 2026-07-10 01:43:19 -04:00
src/main Fixes and Text 2026-07-10 17:36:51 -04:00
.gitignore init commit 2026-07-10 01:43:19 -04:00
build.gradle Fixes and Text 2026-07-10 17:36:51 -04:00
gradle.properties Fixes and Text 2026-07-10 17:36:51 -04:00
gradlew init commit 2026-07-10 01:43:19 -04:00
LICENSE init commit 2026-07-10 01:43:19 -04:00
NOTICE.md init commit 2026-07-10 01:43:19 -04:00
README.md Fix code block formatting in README.md 2026-07-11 16:11:02 -04:00
settings.gradle init commit 2026-07-10 01:43:19 -04:00
shell.nix init commit 2026-07-10 01:43:19 -04:00

Lattice

Unified UI framework for Minecraft clients on Fabric (Minecraft 26.1.2). Lattice supersedes Knit (client base library) and Vexel (NanoVG UI library), merging both into one dependency with a single event bus, one input abstraction, and one screen stack.

Features

  • NanoVG vector renderer (rects, gradients, text, images, SVG, shadows)
  • Constraint-based layout with scrollable containers and a full widget set
  • Semantic theming (Theme) — retheme every widget in one place
  • Time-based animations with easing and presets
  • Single event bus with client lifecycle, tick, and render events
  • UIScreen bridging vanilla screens, plus direct-draw HUD hooks
  • Commodore command DSL over Brigadier, fluent Component text builder
  • Tick and wall-clock schedulers, client/input utilities

Install

maven { url = 'https://bllry.com/maven' }

Version 1.0.0

Gradle

implementation 'xyz.meowing:lattice-26.1.2-fabric:1.0.0

Maven

<dependency>
  <groupId>xyz.meowing</groupId>
  <artifactId>lattice-26.1.2-fabric</artifactId>
  <version>1.0.0</version>
</dependency>

Documentation

Full docs live in docs/ — start with getting started, or the Knit/Vexel migration guide. Design rationale is in docs/architecture.md.

A runnable demo mod lives in example/: /lattice opens a screen showing every widget; /lattice hud, /lattice chat, and /lattice greet demo the render, text, and command APIs.

Building

With Nix: nix-shell --run './gradlew build' (requires JDK 25 otherwise). Publish to your local Maven repository with ./gradlew publish (artifact xyz.meowing:lattice-26.1.2-fabric).

Runtime NanoVG natives ship for linux, linux-arm64, windows, macos, and macos-arm64.

License

GPL-3.0-or-later. Portions of the rendering layer derive from OdinFabric (BSD-3-Clause); see NOTICE.md.

lattice