ctx.recipes.list api on shared side

This commit is contained in:
2026-10-30 23:17:54 -03:00
parent 4717e45a9a
commit 43aa6b2551
5 changed files with 41 additions and 3 deletions
+4
View File
@@ -132,6 +132,10 @@ export interface SharedContext {
// there for server and client scripts, which set up after, and it throws when it's broken like a file would
// stop the mod loading
register(type: string, json: Record<string, unknown>): void;
// every recipe, or every one of type, as its json, copies, in load order: the mods' recipes/ files, and what the
// shared scripts that set up before this one registered, which are the dependencies'. like the client's
// deno-lint-ignore no-explicit-any
list(type?: string): any[];
};
readonly components: {
// the rules of a block component, the same id the server script registers the rest of it under