mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 18:24:06 +00:00
Move terrain palette and carving generators into the pack runtime
- Keep material palette and carving child generators in pack runtime seed tables - Pass the pack runtime to material palette sampling and carving child lookups - Give object placement contexts their pack runtime - Bake procedural variants in the pack's own runtime scope - Remove unused dimension caches and the coordinate fracture cache - Remove the material palette generator key and its caches
This commit is contained in:
1 parent
f6b1bf7e05
commit
1a93918b82
32 files changed
+125
-203
No files matched your search
+2
-1
@@ -1,5 +1,6 @@
|
||||
package art.arcane.iris.modded;
|
||||
|
||||
import art.arcane.iris.generation.runtime.PackRuntime;
|
||||
import art.arcane.volmlib.nativelib.terrain.structure.StructureStagePolicy;
|
||||
import art.arcane.iris.generation.runtime.Engine;
|
||||
import art.arcane.iris.generation.mantle.DeferredPlacementRecords;
|
||||
@@ -151,7 +152,7 @@ final class ModdedNativeStructurePolicy implements NativeModdedStructureStage.Po
|
||||
|
||||
@Override
|
||||
public NativeBlockState paletteBlock(StructurePalette source, RNG rng, int x, int y, int z) {
|
||||
return ((IrisMaterialPalette) source).get(rng, x, y, z, generator.engine().getData());
|
||||
return ((IrisMaterialPalette) source).get(rng, x, y, z, PackRuntime.of(generator.engine()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user