Show pack modules' settings in studio and reload them when their jars change

- SchemaBuilder renders the settings the pack's modules add: each
  feature at a dimension, region, biome or object placement becomes a
  property under its id and, for built-ins, its alias, with a constraint
  that an object holds only one of the two. Each settings class is one
  definition; options carry their kind, bounds, defaults and
  descriptions, and references complete from the same lists Iris's own
  fields use.
- The code workspace writes a schema for each module snippet type under
  snippet/<name>/.
- A pack whose modules fail to load gets no workspace; the error is
  logged instead of writing schemas without the modules.
- PackModuleSet forgets loaded or failed modules once the jars in
  <pack>/modules change, and the workspace then reloads the pack data, so
  studio picks up rebuilt module jars. The studio hotload watcher now
  also reacts to .jar files.
- Placement tests name Iris's built-in states by their own keys, since
  those resolve once per JVM with whichever platform a test bound first.
This commit is contained in:
piexel committed 2026-10-08 08:44:18 +02:00
1 parent 529d70b14a
commit 2aab5ae9a3
9 files changed
+496 -41

No files matched your search

@@ -264,7 +264,7 @@ public final class ModdedStudioHotloadService implements ModdedTickableService,
watch.folder = new ReactiveFolder(
engine.getData().getDataFolder(),
(KList<File> created, KList<File> changed, KList<File> deleted) -> hotload(dimensionId, generator, engine),
new KList<>(".iob", ".json"),
new KList<>(".iob", ".json", ".jar"),
new KList<>(".iris"),
new KList<>());
return;