Stonecutter

This commit is contained in:
2026-10-12 20:52:41 -03:00
parent 02cbeda0a0
commit bea5f10a12
20 changed files with 411 additions and 6 deletions
+4
View File
@@ -175,11 +175,15 @@ interface ClientMenu {
readonly title: string;
readonly open_data: unknown;
readonly data: Readonly<Record<string, number>>; // the server's latest add_data values
item(slot: number): ItemStack | undefined; // what's in a slot, by menu slot index, a copy
click_button(id: number): void;
close(): void;
}
```
`item` is for screens that draw something from what's in the slots, like NeoForge screens reading `menu.slots`: the
stonecutter's lists what its input can be cut into.
When the server opens a menu type the client has no screen for, the client closes it again, with an error in its
console. A screen that throws is closed the same way.