ctx.schematics.ids

This commit is contained in:
2026-11-22 16:09:11 -03:00
parent df7a1a94d6
commit 527f2fb5a7
4 changed files with 16 additions and 0 deletions
+2
View File
@@ -737,6 +737,8 @@ export interface SchematicApi {
// StructureTemplateManager.get. undefined for an id nothing registered. for reading what's in it before placing it,
// like where a room's doorways are
get(id: Id): Schematic | undefined;
// every registered schematic's id, the files' and the ones scripts registered, in the order they were registered
ids(): Id[];
// puts a registered schematic in the world, all of it at once, replacing what was there, air too. replaced blocks
// get their on_break. blocks it has data for get that data as it is, the rest their on_create, then everything
// placed tells the blocks beside it. its entities come with new uuids. throws for an id nothing registered, or a