mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +00:00
ModuleVanillaStructures asks every hook for rules and adjustments (per engine, structure and snapshot), starts per chunk (converted to NativeStructureStartPlan, refused outside the chunk asked for) and setup per dimension before a world exists (DimensionSettings: the dimension's settings without an engine). NativeStructureStartPlan carries the module's start as host types (structure key, chunk, world base Y, underground, replacesPlatformStart, identity, IrisJigsawConfiguration, stilt, terrain) and decision(); NativeStructureStarts replaces plansAt/matchingPlan. NativeStructureGenerationPolicy builds its decision from rule and adjustment only. NativeStructureFrequencies (host) replaces IrisImportedStructureControl in INMSBinding, Bukkit NMS, DatapackStructureScopeSVC and modded frequency overrides; DatapackIngestService asks setup for protecting vanilla definitions. IrisValues converts the fit value types to Iris's classes (same JSON). Studio: Reference.STRUCTURE_PREFIX/STRUCTURE_SET complete like Iris's prefix and structure set lists; the annotation branches they replace are gone. Validators read the iris:structure key. Messages name iris:structure instead of importedStructures. Tests: NativeStructureStartsTest pins the planner's starts for seed 1337 (52 starts) and the fit JSON; NativeStartPlannerTest (moved), ImportedStructuresTest (was IrisImportedStructureControlTest), StructureSettingsDecodingTest (migrated overworld JSON), policy, schema, validator, handler, Bukkit NMS and modded tests ported.