Stonecutter
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user