SR

sya-ri/strata

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

4 stars 품질 69 트렌드 25MIT

Declarative Minecraft UI with reusable component trees, version-independent layout and state, and headless testing without launching Minecraft.

개요

Declarative Minecraft UI with reusable components, caller-owned state, and headless rendering. Create custom screens and HUDs from Fabric Mods or Paper, Folia, and Velocity plugins. For server-driven UIs, the server or proxy owns the definitions, state, and event handlers, while the required Strata Fabric client Mod renders the interface and delivers player input. Vanilla clients cannot display these UIs. This page documents the development sources; for an installed version, use the documentation at its matching release tag. Minecraft screens often mix layout, input, state, resources, and version-specific calls in one class. Strata separates those responsibilities so an interface can be composed, reused, and tested through a common API. - Keep one interface as a screen or HUD, switch its presentation, and control game input through its session. - Arrange interfaces with rows, columns, wrapping groups, grids, and overlays.

README

원문 README의 일부입니다. 원문 보기.

Declarative Minecraft UI with reusable components, caller-owned state, and headless rendering.

Create custom screens and HUDs from Fabric Mods or Paper, Folia, and Velocity plugins. For server-driven UIs, the server or proxy owns the definitions, state, and event handlers, while the required Strata Fabric client Mod renders the interface and delivers player input. Vanilla clients cannot display these UIs.

Modrinth · Hangar · CurseForge

This page documents the development sources; for an installed version, use the documentation at its matching release tag.

Example · Still frames

Minecraft screens often mix layout, input, state, resources, and version-specific calls in one class. Strata separates those responsibilities so an interface can be composed, reused, and tested through a common API.

What you can build

  • Keep one interface as a screen or HUD, switch its presentation, and control game input through its session.
  • Arrange interfaces with rows, columns, wrapping groups, grids, and overlays.
  • Compose controls, text editors, scrolling views, images, and Minecraft resource-backed content.
  • Add sizing, backgrounds, pointer and keyboard actions, focus, and layout parent data through modifiers.
  • Reuse application components or implement custom primitives through the public Element and Node SPI.
  • Render portable drawing and semantics in JVM tests, with separate loaded-client verification for native behavior.

The component overview shows the available components with images and compiled examples. Complete screens demonstrate how they fit together. Try the interactive web demos for a counter, progress controls, and a keyed list running in your browser.

A screen built from components

A confirmation screen combines text, buttons, and layout components into a reusable UI definition.

Compare components and browse their examples.

Installation

Fabric client and server

Players need the Strata Fabric runtime, Fabric API, and Fabric Language Kotlin for both client-defined and server-driven UIs.

GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add sya-ri/strata
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →