10-gui Cursor ruleA
10-gui from guguzea/mc-ai-coding-assistant-tool is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/10-gui.mdc@git:20260928.076820cPins git:20260928.076820c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- guguzea/mc-ai-coding-assistant-tool
- Path
fabric/1.14.4/.cursor/rules/10-gui.mdc- Versions recorded
- 4
- Latest version
- git:20260928.076820c, committed Sep 28, 2026
- First version recorded
- Jul 11, 2026
- Size
- 6,772 bytes
- Repository stars
- 135
- License
- a license file GitHub does not identify
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 10 — GUI / Screen 开发 > 适用版本:Fabric 1.14.4 --- ## 约束 ### 核心原则 - GUI 代码**仅在客户端**执行(`ClientModInitializer`) - Screen 类继承 `Screen` 或其子类(容器屏通常再包一层 HandledScreen / ContainerScreen) - 容器屏通过 `ScreenProviderRegistry.INSTANCE.registerFactory` 注册(loader-api 已核;与 `ContainerProviderRegistry` 共用同一个 `Identifier`) - **禁止**在服务端引用任何 GUI 类(`Screen`、`ButtonWidget` 等)。不要抄 1.20+ `DrawContext` --- ## Decision Flow ### Decision: 选择 GUI 框架 ``` IF 简单的输入界面(文本框、按钮、说明) → Screen + TextFieldWidget + ButtonWidget IF 容器型 GUI(箱子、熔炉、机器) → Container + ContainerScreen + ScreenProviderRegistry / ContainerProviderRegistry IF 打开时要同步额外数据(坐标、流体量等) → 额外数据:openContainer 的 PacketByteBuf writer IF 给原版 Screen 加控件 → 只能改自己的 Screen.init();本档无 ScreenEvents.AFTER_INIT ``` --- ## 基本 Screen 按钮在 `init()` 里创建;**标题/说明文字在 `render()` 里画**,不要在 `init()` 里 `drawString`。 不要用 `TextWidget`(部分档没有)或 `SimpleNamedWidget`(编造)。 Yarn 1.14.4 `Screen` 构造是 `(Text title)`([yarn 1.14.4 Screen.mapping](https://github.com/FabricMC/yarn/blob/1.14.4/mappings/net/minecraft/client/gui/screen/Screen.mapping))。`ButtonWidget` 第 5 参是 `String`。`render` 无 `MatrixStack`。`renderBackground` 只有 `(int alpha)`。 ```java …
Read the whole file at its exact version.
How to install
mdr add guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/10-gui.mdc@sha256:c97677e49846fdd3The line at the top of this page pins the label git:20260928.076820c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_wah4cdunnhvaao23)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Jul 11, 2026 and Sep 28, 2026, about one every 26 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260928.076820c latest | 2026-09-28 | 076820c | 6,772 B | A | view · diff |
| git:20260819.ca99162 | 2026-08-19 | ca99162 | 6,239 B | A | view · diff |
| git:20260818.b1ccba0 | 2026-08-18 | b1ccba0 | 4,958 B | A | view · diff |
| git:20260711.586c86f | 2026-07-11 | 586c86f | 4,276 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (6772 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
guguzea/mc-ai-coding-assistant-tool · 135 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_wah4cdunnhvaao23 GET https://markdownregistry.com/api/v1/resolve?ref=guguzea/mc-ai-coding-assistant-tool/fabric/1.14.4/.cursor/rules/10-gui.mdc GET https://markdownregistry.com/api/v1/blob/c97677e49846fdd3314827509e8dc85cbf44e6c28adbbb2207e4df6f11242e9f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.