mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
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.
22 lines
651 B
Java
22 lines
651 B
Java
package com.volmit.vanilla;
|
|
|
|
/** The decoration step in which the platform places a structure's pieces, in the platform's order. */
|
|
public enum StructureStep {
|
|
RAW_GENERATION,
|
|
LAKES,
|
|
LOCAL_MODIFICATIONS,
|
|
UNDERGROUND_STRUCTURES,
|
|
SURFACE_STRUCTURES,
|
|
STRONGHOLDS,
|
|
UNDERGROUND_ORES,
|
|
UNDERGROUND_DECORATION,
|
|
FLUID_SPRINGS,
|
|
VEGETAL_DECORATION,
|
|
TOP_LAYER_MODIFICATION;
|
|
|
|
/** Whether this is one of the steps the platform places its underground structures in. */
|
|
public boolean isUnderground() {
|
|
return this == UNDERGROUND_STRUCTURES || this == UNDERGROUND_DECORATION || this == STRONGHOLDS;
|
|
}
|
|
}
|