Let modules show block scenes in the studio

ModuleSetup.tooling() gives a ToolingRegistry, where a module registers
SceneViews: a catalogue of entries, each with variants the studio draws
in 3D, built from the pack for a world. View ids follow the module's id
and are unique; the frozen catalogue lists them by id.
This commit is contained in:
piexel committed 2026-11-06 01:18:45 +01:00
1 parent f57c2ce92c
commit a658cd2446
9 files changed
+164 -10

No files matched your search

@@ -1,16 +1,19 @@
package com.volmit;
import com.volmit.stage.StageGraph;
import com.volmit.tooling.ToolingRegistry;
/** What a module gets in {@link IrisModule#setup}: the stage graph it defines its stages in, the registry for
* everything else, and its own log. Stages and registrations are accepted only while {@code setup} runs; the log
* may be kept and used later, such as from lifecycle hooks.
* everything else it adds to generation, the registry for its studio tools, and its own log. Stages and registrations
* are accepted only while {@code setup} runs; the log may be kept and used later, such as from lifecycle hooks.
*/
public interface ModuleSetup {
StageGraph stages();
FeatureRegistry registry();
ToolingRegistry tooling();
/** This module's log, the same one its stages and lifecycle hooks see through their world. */
ModuleLog log();
}