mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
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.
23 lines
1.0 KiB
Java
23 lines
1.0 KiB
Java
package com.volmit;
|
|
|
|
import com.volmit.mantle.MantleCodec;
|
|
import com.volmit.mantle.MantleKey;
|
|
import com.volmit.mantle.MantleLifetime;
|
|
import com.volmit.object.ObjectGeneratorFactory;
|
|
|
|
/** Host implementation collects non-stage registrations before loading pack configuration.
|
|
* Feature IDs must be unique. JSON fields must be unique per attachment target, including the
|
|
* settings types stages name in {@code when(...)}.
|
|
*/
|
|
public interface FeatureRegistry {
|
|
/** Registers a layer before pack loading. Null arguments throw NullPointerException;
|
|
* duplicate IDs and negative codec versions throw IllegalArgumentException.
|
|
* Only the owner registers a shared layer; consumers refer to its key. The host must
|
|
* preserve unknown persisted layers or fail explicitly, never silently discard them.
|
|
* GENERATION layers also require codecs.
|
|
*/
|
|
<T> void registerMantle(MantleKey<T> key, MantleLifetime lifetime, MantleCodec<T> codec);
|
|
|
|
<F extends IrisFeature> void registerObject(Class<F> featureType, ObjectGeneratorFactory<F> factory);
|
|
}
|