mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
MantleRunner.generate(stage, inputs, seed) runs one mantle stage for one chunk. The host runs every mantle stage as its own pass in resolved order, so a stage sees what earlier stages wrote into the chunks around it. Activation still follows requires(...): the runner collects the settings of the stage and of everything it requires, and only those. Because the stages of one chunk now run in different invocations, mantle stages have no output (Stage.mantle declares Void) and pass data on through mantle layers. A mantle stage whose reach depends on the pack declares reach(PackReach). The host works it out once per pack load from PackSettings, every entry the dimension and its regions and biomes declare, with ResolvedStage.reachBlocks(settings); a negative result fails naming the stage. Placement and chunk stages may not declare one, and ResolvedGraph.reach() throws for a mantle pipeline that has one. VeinModule now sizes its reach from the pack's longest vein.
20 lines
824 B
Java
20 lines
824 B
Java
package com.volmit.config;
|
|
|
|
import com.volmit.IrisFeature;
|
|
import com.volmit.config.FeatureSettings.Entry;
|
|
import java.util.List;
|
|
|
|
/** Every settings declaration of the pack the host is loading, for what depends on the whole pack rather
|
|
* than one column, such as how far a mantle stage reaches ({@link com.volmit.stage.PackReach}).
|
|
*
|
|
* <p>The levels are those chunk and mantle stages see: the dimension being generated, and every region
|
|
* and biome it can reach. Placements are not a level here. Values must be treated as read-only and not
|
|
* retained.
|
|
*/
|
|
public interface PackSettings {
|
|
/** Every entry of {@code featureType} the pack declares, dimension first, then regions, then biomes;
|
|
* empty when nothing declares it.
|
|
*/
|
|
<F extends IrisFeature> List<Entry<F>> declared(Class<F> featureType);
|
|
}
|