mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 01:34:04 +00:00
StructureStep becomes DecorationStep: the platform's decoration steps also order its placed features, which the next service names
Pure rename (and its javadoc); every use in StructureFit, the test and CONTRACTS follows.
This commit is contained in:
1 parent
d2d746734f
commit
cf8b2bb0f6
4 files changed
+9
-7
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ types that carry them and lists what the Iris adapter still owes.
|
|||||||
| Block states and palettes | `BlockState`, `BlockRegistry`, `BlockPalette`, `BlockSpec` (`BlockRegistry.resolve(BlockSpec)`, `blockEntity`), `PaletteSpec` and `PaletteSampler` (`BlockRegistry.palette`) |
|
| Block states and palettes | `BlockState`, `BlockRegistry`, `BlockPalette`, `BlockSpec` (`BlockRegistry.resolve(BlockSpec)`, `blockEntity`), `PaletteSpec` and `PaletteSampler` (`BlockRegistry.palette`) |
|
||||||
| Noise from pack-described styles | `NoiseStyle`, `StyledRange`, `PackResources.noise()`, `NoiseFactory`, `NoiseSampler` |
|
| Noise from pack-described styles | `NoiseStyle`, `StyledRange`, `PackResources.noise()`, `NoiseFactory`, `NoiseSampler` |
|
||||||
| Values in settings | `BlockSpec`, `PaletteSpec`, `NoiseStyle`, `StyledRange`, `Range`, `BlockPosition`, `JigsawOverrides`, `Object` as `ValueKind.AnyKind` |
|
| Values in settings | `BlockSpec`, `PaletteSpec`, `NoiseStyle`, `StyledRange`, `Range`, `BlockPosition`, `JigsawOverrides`, `Object` as `ValueKind.AnyKind` |
|
||||||
| Decisions over and fit of the platform's own structures | service `VanillaStructures` (`rule`, `starts`, `shift`, `reach`, `beforePieces`, `afterPieces`, `setup`), `VanillaStructureRule`, `VanillaStructureContext`, `VanillaStructureStart`, `VanillaStructureStartContext`, `VanillaStructureSetup`, `PlatformStart`, `StartMemo`, `StartReach`, `StructureFit` (`Start`, `Piece`, `ColumnVisitor`), `StructureStep`, `TerrainAdaptation`, `PieceKind`, `TemplateCells`, `world.BlockAccess`, host `FeatureCatalog.registrations(service)` |
|
| Decisions over and fit of the platform's own structures | service `VanillaStructures` (`rule`, `starts`, `shift`, `reach`, `beforePieces`, `afterPieces`, `setup`), `VanillaStructureRule`, `VanillaStructureContext`, `VanillaStructureStart`, `VanillaStructureStartContext`, `VanillaStructureSetup`, `PlatformStart`, `StartMemo`, `StartReach`, `StructureFit` (`Start`, `Piece`, `ColumnVisitor`), `DecorationStep`, `TerrainAdaptation`, `PieceKind`, `TemplateCells`, `world.BlockAccess`, host `FeatureCatalog.registrations(service)` |
|
||||||
| Pack-scoped resolution | `ResourceId`, `ResourceKey<T>`, `PackResources` (`find`, `ids`), `PackBiome`, `PackRegion` |
|
| Pack-scoped resolution | `ResourceId`, `ResourceKey<T>`, `PackResources` (`find`, `ids`), `PackBiome`, `PackRegion` |
|
||||||
| Module-owned pack resources | `ResourceKind`, `FeatureRegistry.registerResourceKind`, `@ResourceRef`, host `ModuleHost.reservingFolders`, `FeatureCatalog.resourceKinds()`, `ResourceKindSchema`, `ValueKind.ResourceReferenceKind` |
|
| Module-owned pack resources | `ResourceKind`, `FeatureRegistry.registerResourceKind`, `@ResourceRef`, host `ModuleHost.reservingFolders`, `FeatureCatalog.resourceKinds()`, `ResourceKindSchema`, `ValueKind.ResourceReferenceKind` |
|
||||||
| Module-owned pack checks | `Validator`, `ValidationContext`, `Problem`, `Severity`, `Subject`, `FeatureRegistry.registerValidator`, host `FeatureCatalog.validators()` |
|
| Module-owned pack checks | `Validator`, `ValidationContext`, `Problem`, `Severity`, `Subject`, `FeatureRegistry.registerValidator`, host `FeatureCatalog.validators()` |
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
package com.volmit.vanilla;
|
package com.volmit.vanilla;
|
||||||
|
|
||||||
/** The decoration step in which the platform places a structure's pieces, in the platform's order. */
|
/** A decoration step of the platform's chunk generation, in the platform's order: the step in which it places a structure's
|
||||||
public enum StructureStep {
|
* pieces, or a placed feature such as an ore or a tree.
|
||||||
|
*/
|
||||||
|
public enum DecorationStep {
|
||||||
RAW_GENERATION,
|
RAW_GENERATION,
|
||||||
LAKES,
|
LAKES,
|
||||||
LOCAL_MODIFICATIONS,
|
LOCAL_MODIFICATIONS,
|
||||||
@@ -67,7 +67,7 @@ public interface StructureFit {
|
|||||||
|
|
||||||
int chunkZ();
|
int chunkZ();
|
||||||
|
|
||||||
StructureStep step();
|
DecorationStep step();
|
||||||
|
|
||||||
/** The terrain adaptation the platform's definition of the structure asks for. */
|
/** The terrain adaptation the platform's definition of the structure asks for. */
|
||||||
TerrainAdaptation adaptation();
|
TerrainAdaptation adaptation();
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import com.volmit.block.BlockState;
|
|||||||
import com.volmit.config.OptionsMetadata;
|
import com.volmit.config.OptionsMetadata;
|
||||||
import com.volmit.resource.ResourceId;
|
import com.volmit.resource.ResourceId;
|
||||||
import com.volmit.service.VanillaStructures;
|
import com.volmit.service.VanillaStructures;
|
||||||
|
import com.volmit.vanilla.DecorationStep;
|
||||||
import com.volmit.vanilla.JigsawOverrides;
|
import com.volmit.vanilla.JigsawOverrides;
|
||||||
import com.volmit.vanilla.StartMemo;
|
import com.volmit.vanilla.StartMemo;
|
||||||
import com.volmit.vanilla.StartReach;
|
import com.volmit.vanilla.StartReach;
|
||||||
import com.volmit.vanilla.StructureStep;
|
|
||||||
import com.volmit.vanilla.TemplateCells;
|
import com.volmit.vanilla.TemplateCells;
|
||||||
import com.volmit.vanilla.VanillaStructureContext;
|
import com.volmit.vanilla.VanillaStructureContext;
|
||||||
import com.volmit.vanilla.VanillaStructureRule;
|
import com.volmit.vanilla.VanillaStructureRule;
|
||||||
@@ -69,8 +69,8 @@ class VanillaStructureValuesTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void onlyTheUndergroundStepsAreUnderground() {
|
void onlyTheUndergroundStepsAreUnderground() {
|
||||||
assertEquals(List.of(StructureStep.UNDERGROUND_STRUCTURES, StructureStep.STRONGHOLDS, StructureStep.UNDERGROUND_DECORATION),
|
assertEquals(List.of(DecorationStep.UNDERGROUND_STRUCTURES, DecorationStep.STRONGHOLDS, DecorationStep.UNDERGROUND_DECORATION),
|
||||||
java.util.Arrays.stream(StructureStep.values()).filter(StructureStep::isUnderground).toList());
|
java.util.Arrays.stream(DecorationStep.values()).filter(DecorationStep::isUnderground).toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in new issue
Block a user