mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
24 lines
850 B
Java
24 lines
850 B
Java
package com.volmit;
|
|
|
|
import com.volmit.stage.StageGraph;
|
|
|
|
/** A unit of world-generation behavior. The core engine is an ordinary module too.
|
|
*
|
|
* <p>In a pack's module jar this class is the entry point. The jar names it in
|
|
* {@code META-INF/services/com.volmit.IrisModule}, and it needs a public no-argument constructor.
|
|
* One jar holds exactly one module.
|
|
*/
|
|
public interface IrisModule {
|
|
ModuleInfo info();
|
|
|
|
/** Defines this module's stages, before settings are decoded or generation starts.
|
|
* Called once per pack load; stage bodies must not capture per-invocation state.
|
|
*/
|
|
void install(StageGraph graph);
|
|
|
|
/** Registers non-stage contributions: geometry generators, mantle layers, settings no stage names, pack
|
|
* resource kinds and validators.
|
|
*/
|
|
default void register(FeatureRegistry registry) {}
|
|
}
|