Files
Iris/api/src/main/java/com/volmit/ModuleSetup.java
T
piexel a658cd2446 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.
2026-11-06 01:18:45 +01:00

20 lines
692 B
Java

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 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();
}