mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 09:15:27 +00:00
Keep generating past failures
- REPLACE_SOURCE failures no longer stop the chunk: skip the piece or structure and warn once per structure and cause - Replace requirePlacementOutput with placementOutput and remove requireAppliedPieces - Key structure piece warnings on the structure, not the object - Register the VolmLib placement failure hook from IrisEngine, using the engine failure rule - Add HydrologyPlanException so a failed plan read inside a placement scope stops the chunk - Add modded containment tests, with source rules for the 26.2 and 1.21.1 test sources
This commit is contained in:
1 parent
d0923de181
commit
f4f7e92a4c
15 files changed
+689
-86
No files matched your search
@@ -443,6 +443,48 @@
|
||||
"pattern": "\"volmlib\\.entity\\.mixins\\.json/ServerLevelStructureBootstrapMixin\",",
|
||||
"replacement": "\"volmlib.entity.mixins.json/ServerLevelStructureBootstrapMixin\",\n \"volmlib.entity.mixins.json/WorldDimensionsBakeMixin\",\n \"volmlib.entity.mixins.json/WorldGenSettingsPersistenceMixin\","
|
||||
}
|
||||
],
|
||||
"art/arcane/iris/modded/ModdedPlacementContainmentTest.java": [
|
||||
{
|
||||
"pattern": "manager\\.startsForStructure\\(anyInt\\(\\), anyInt\\(\\), any\\(Structure\\.class\\)\\)",
|
||||
"replacement": "manager.startsForStructure(any(SectionPos.class), any(Structure.class))"
|
||||
},
|
||||
{
|
||||
"pattern": "import net\\.minecraft\\.core\\.Holder;",
|
||||
"replacement": "import net.minecraft.core.Holder;\nimport net.minecraft.core.SectionPos;"
|
||||
},
|
||||
{
|
||||
"pattern": "import net\\.minecraft\\.world\\.level\\.levelgen\\.feature\\.Feature;",
|
||||
"replacement": "import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;\nimport net.minecraft.world.level.levelgen.feature.Feature;\nimport net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;"
|
||||
},
|
||||
{
|
||||
"pattern": "Feature feature = mock\\(Feature\\.class\\);",
|
||||
"replacement": "Feature<NoneFeatureConfiguration> feature = mock(Feature.class);"
|
||||
},
|
||||
{
|
||||
"pattern": "when\\(feature\\.place\\(any\\(\\), any\\(\\), any\\(\\), any\\(\\)\\)\\)",
|
||||
"replacement": "when(feature.place(any(), any(), any(), any(), any()))"
|
||||
},
|
||||
{
|
||||
"pattern": "placement\\.accept\\(invocation\\.getArgument\\(0\\)\\);",
|
||||
"replacement": "placement.accept(invocation.getArgument(1));"
|
||||
},
|
||||
{
|
||||
"pattern": "return new PlacedFeature\\(Holder\\.direct\\(feature\\), List\\.of\\(\\)\\);",
|
||||
"replacement": "return new PlacedFeature(Holder.direct(new ConfiguredFeature<>(feature, NoneFeatureConfiguration.INSTANCE)), List.of());"
|
||||
},
|
||||
{
|
||||
"pattern": "\\.getMinY\\(\\)",
|
||||
"replacement": ".getMinBuildHeight()"
|
||||
},
|
||||
{
|
||||
"pattern": "\\.getMinSectionY\\(\\)",
|
||||
"replacement": ".getMinSection()"
|
||||
},
|
||||
{
|
||||
"pattern": "registries\\.lookupOrThrow\\(",
|
||||
"replacement": "registries.registryOrThrow("
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -73,6 +73,36 @@
|
||||
"pattern": "(?ms)^ BuiltInRegistries\\.BLOCK\\.prepareTagReload\\(new TagLoader\\.LoadResult<>.*?\\)\\)\\)\\)\\.apply\\(\\);\\n",
|
||||
"replacement": ""
|
||||
}
|
||||
],
|
||||
"art/arcane/iris/modded/ModdedPlacementContainmentTest.java": [
|
||||
{
|
||||
"pattern": "manager\\.startsForStructure\\(anyInt\\(\\), anyInt\\(\\), any\\(Structure\\.class\\)\\)",
|
||||
"replacement": "manager.startsForStructure(any(SectionPos.class), any(Structure.class))"
|
||||
},
|
||||
{
|
||||
"pattern": "import net\\.minecraft\\.core\\.Holder;",
|
||||
"replacement": "import net.minecraft.core.Holder;\nimport net.minecraft.core.SectionPos;"
|
||||
},
|
||||
{
|
||||
"pattern": "import net\\.minecraft\\.world\\.level\\.levelgen\\.feature\\.Feature;",
|
||||
"replacement": "import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;\nimport net.minecraft.world.level.levelgen.feature.Feature;\nimport net.minecraft.world.level.levelgen.feature.configurations.NoneFeatureConfiguration;"
|
||||
},
|
||||
{
|
||||
"pattern": "Feature feature = mock\\(Feature\\.class\\);",
|
||||
"replacement": "Feature<NoneFeatureConfiguration> feature = mock(Feature.class);"
|
||||
},
|
||||
{
|
||||
"pattern": "when\\(feature\\.place\\(any\\(\\), any\\(\\), any\\(\\), any\\(\\)\\)\\)",
|
||||
"replacement": "when(feature.place(any(), any(), any(), any(), any()))"
|
||||
},
|
||||
{
|
||||
"pattern": "placement\\.accept\\(invocation\\.getArgument\\(0\\)\\);",
|
||||
"replacement": "placement.accept(invocation.getArgument(1));"
|
||||
},
|
||||
{
|
||||
"pattern": "return new PlacedFeature\\(Holder\\.direct\\(feature\\), List\\.of\\(\\)\\);",
|
||||
"replacement": "return new PlacedFeature(Holder.direct(new ConfiguredFeature<>(feature, NoneFeatureConfiguration.INSTANCE)), List.of());"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user