mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Replace fixed placement hooks with a module-owned stage graph
Modules now define every stage themselves through IrisModule.install(StageGraph): typed stage constants, hard requires(...) on other modules' constants, soft ordering by id, when(...) activation and typed outputs. Placement and chunk generation resolve on the same machinery; adjacent per-block stages fuse into one block pass. The host-defined PlacementModifier hooks, string Dependencies, GenerationPlan, PlacementPipeline, DependencyOrder and OccurrenceOrder are removed.
This commit is contained in:
1 parent
9043d93fbd
commit
eeb5486098
76 files changed
+2717
-1567
No files matched your search
@@ -1,10 +1,16 @@
|
||||
package com.volmit;
|
||||
|
||||
import com.volmit.stage.StageGraph;
|
||||
|
||||
/** A unit of world-generation behavior. The core engine is an ordinary module too. */
|
||||
public interface IrisModule {
|
||||
ModuleInfo info();
|
||||
|
||||
String name();
|
||||
/** 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);
|
||||
|
||||
String displayVersion();
|
||||
/** Called during registration, before settings are decoded or generation starts. */
|
||||
void register(FeatureRegistry registry);
|
||||
/** Registers non-stage contributions: geometry generators and mantle layers. */
|
||||
default void register(FeatureRegistry registry) {}
|
||||
}
|
||||
Reference in new issue
Block a user