
Что это
A Fast UI Rendering Library for Fabric mods. Border radius, gradients, textures and text.
- Тип: мод
- Загрузчик: fabric
- Версии Minecraft: 1.21.11
- Скачиваний на Modrinth: 415
Подробно
Brapi A UI rendering library for Fabric mods. Supports rounded rectangles, text, gradients, textures, and 9-slice sprites with a simple API. With future support for SVG rasterizer, shadows, more text options, toggleable immediate mode rendering and lines.
Making good-looking UIs in Minecraft is harder than it should be. Vanilla's tools work fine for basic boxes, but as soon as you want smooth rounded corners, circles, or nice-looking text, you hit a wall. Normally you're stuck with two options:
1. Bring in a heavy graphics library like Skia, which is hard to set-up for first time and makes the mod size very big 2. Write your own shaders from scratch, which means dealing with extra setup and boilerplate most modders would rather skip
Brapi gives a third option. It's a lightweight layer that sits on top of Minecraft's existing rendering system, so you get the nice visuals without the pain. Key Benefits:
Zero Boilerplate: No setup hassle. Just create a BRender, add your draw calls, and flush. Complex Shapes Made Simple: Draw circles, outlines, and rounded rectangles (even with different corner sizes) in a single line of code. Automatic Batching & Layering: Brapi figures out the right draw order on its own, so your UI looks right without you micromanaging it.
Add the repository and dependency to build.gradle: gradle repositories { exclusiveContent { forRepository { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } } filter { includeGroup "maven.modrinth" } } } dependencies { modImplementation "maven.modrinth:brapi:0.26+${minecraftversion}+fabric" // only supported minecraft version is 1.21.11 right now }
fabric.mod.json: json "depends": { "brapi": "" }
Using in code Create a BRender instance, add draw calls, then call flush(graphics) to submit. Everything renders at end of frame sorted by layer.
🎨 All colors are ARGB: 0xFFFF0000 = opaque red, 0x80FF0000 = 50% transparent red. 📐 Coordinates are in GuiScale units: (100, 100) at scale 3 = (300, 300) pixels.
Filled shapes - bRender.rect(100, 100, 100, 100, 0xFFFF0000, layer); - red 100x100 rectangle - bRender.roundRect(100, 100, 100, 100, 0xFFFF0000, 10, layer); - rounded rectangle, 10px radius - bRender.roundRect(100, 100, 100, 100, 0xFFFF0000, 10, 5, layer); - 10px TL/BR, 5px TR/BL radius - bRender.roundRect(100, 100, 100, 100, 0xFFFF0000, 10, 5, 20, 30, layer); - individual corner radii - bRender.circle(100, 100, 50, 0xFFFF0000,
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Group Chat
A simple group chat mod/plugin for Minecraft servers, with the most easy-to-use commands. 06.12.2026
Story Mode Towns
Adds Redstonia, Boom Town, and the Boom Town Battle from Minecraft: Story Mode as naturally generating structures. For Fabric 26.2. 06.12.2026
PvP OPTIMIZED
A PvP modpack with Performance in mind by 1szco1 06.12.2026
Skybox Overhaul
Colourful, realistic skies that stay vanilla: richer day and night gradients, wide layered sunrises and sunsets, twinkling coloured stars… 06.12.2026
Battlebound Map Series
Base modpack for a lot of Battlebound games 06.12.2026
Scribe
Text to Screen! The easy way. 06.12.2026