mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +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
+4
-2
@@ -1,7 +1,9 @@
|
||||
package com.volmit.vanilla;
|
||||
|
||||
/** The decoration step in which the platform places a structure's pieces, in the platform's order. */
|
||||
public enum StructureStep {
|
||||
/** A decoration step of the platform's chunk generation, in the platform's order: the step in which it places a structure's
|
||||
* pieces, or a placed feature such as an ore or a tree.
|
||||
*/
|
||||
public enum DecorationStep {
|
||||
RAW_GENERATION,
|
||||
LAKES,
|
||||
LOCAL_MODIFICATIONS,
|
||||
@@ -67,7 +67,7 @@ public interface StructureFit {
|
||||
|
||||
int chunkZ();
|
||||
|
||||
StructureStep step();
|
||||
DecorationStep step();
|
||||
|
||||
/** The terrain adaptation the platform's definition of the structure asks for. */
|
||||
TerrainAdaptation adaptation();
|
||||
|
||||
@@ -4,10 +4,10 @@ import com.volmit.block.BlockState;
|
||||
import com.volmit.config.OptionsMetadata;
|
||||
import com.volmit.resource.ResourceId;
|
||||
import com.volmit.service.VanillaStructures;
|
||||
import com.volmit.vanilla.DecorationStep;
|
||||
import com.volmit.vanilla.JigsawOverrides;
|
||||
import com.volmit.vanilla.StartMemo;
|
||||
import com.volmit.vanilla.StartReach;
|
||||
import com.volmit.vanilla.StructureStep;
|
||||
import com.volmit.vanilla.TemplateCells;
|
||||
import com.volmit.vanilla.VanillaStructureContext;
|
||||
import com.volmit.vanilla.VanillaStructureRule;
|
||||
@@ -69,8 +69,8 @@ class VanillaStructureValuesTest {
|
||||
|
||||
@Test
|
||||
void onlyTheUndergroundStepsAreUnderground() {
|
||||
assertEquals(List.of(StructureStep.UNDERGROUND_STRUCTURES, StructureStep.STRONGHOLDS, StructureStep.UNDERGROUND_DECORATION),
|
||||
java.util.Arrays.stream(StructureStep.values()).filter(StructureStep::isUnderground).toList());
|
||||
assertEquals(List.of(DecorationStep.UNDERGROUND_STRUCTURES, DecorationStep.STRONGHOLDS, DecorationStep.UNDERGROUND_DECORATION),
|
||||
java.util.Arrays.stream(DecorationStep.values()).filter(DecorationStep::isUnderground).toList());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user