mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
VanillaStructures service replaces the vanilla structure hook; fit values leave the API
The hook's rule, starts and setup move to a @Service(ALL) VanillaStructures with default methods. adjustment and the fit value types (VanillaStructureAdjustment, VanillaStructureFit, StructureTerrain, StructureStilts, YBand) are gone: modules keep their fit vocabulary as settings. New neutral questions: shift (vertical move of a platform start), reach (how far around its pieces a module changes terrain for a start), beforePieces/afterPieces around the platform placing a chunk's starts. StructureFit hands a module the chunk's starts (pieces, junctions, processed template cells, template columns, legacy template air, platform terrain adaptation and step, the start's memo), the chunk's live blocks as a BlockAccess, the surface heights and the platform's natural block. VanillaStructureStart carries a StartMemo instead of a fit; the host keeps it with the start's ownership record.
This commit is contained in:
1 parent
b82c292dcb
commit
ee7bb11790
25 files changed
+555
-715
No files matched your search
@@ -8,7 +8,6 @@ import com.volmit.resource.ResourceKind;
|
||||
import com.volmit.service.Service;
|
||||
import com.volmit.stage.StageGraph;
|
||||
import com.volmit.validation.Validator;
|
||||
import com.volmit.vanilla.VanillaStructureHook;
|
||||
|
||||
/** 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
|
||||
@@ -60,9 +59,4 @@ public interface FeatureRegistry {
|
||||
* are {@link com.volmit.service.Providers#ONE} fails the pack load when a second module provides it, naming both.
|
||||
*/
|
||||
<S> void registerService(Class<S> service, S provider);
|
||||
|
||||
/** Lets this module decide over the platform's own structures in the pack's worlds: block them, leave them to the
|
||||
* platform, or place them itself.
|
||||
*/
|
||||
void registerVanillaStructureHook(VanillaStructureHook hook);
|
||||
}
|
||||
Reference in new issue
Block a user