mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-02 07:56:48 +00:00
Handle terrain mode rendering
This commit is contained in:
parent
df9114d7b0
commit
595ba92f06
@ -157,16 +157,26 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
|||||||
public void generate(int x, int z, Hunk<BlockData> vblocks, Hunk<Biome> vbiomes) {
|
public void generate(int x, int z, Hunk<BlockData> vblocks, Hunk<Biome> vbiomes) {
|
||||||
try {
|
try {
|
||||||
PrecisionStopwatch p = PrecisionStopwatch.start();
|
PrecisionStopwatch p = PrecisionStopwatch.start();
|
||||||
Hunk<BlockData> blocks = vblocks.synchronize().listen((xx, y, zz, t) -> catchBlockUpdates(x + xx, y + getMinHeight(), z + zz, t));
|
Hunk<BlockData> blocks = vblocks;
|
||||||
getFramework().getEngineParallax().generateParallaxArea(x >> 4, z >> 4);
|
|
||||||
getFramework().getBiomeActuator().actuate(x, z, vbiomes);
|
|
||||||
getFramework().getTerrainActuator().actuate(x, z, blocks);
|
switch(getDimension().getTerrainMode())
|
||||||
getFramework().getCaveModifier().modify(x, z, blocks);
|
{
|
||||||
getFramework().getRavineModifier().modify(x, z, blocks);
|
case NORMAL -> {
|
||||||
getFramework().getPostModifier().modify(x, z, blocks);
|
getFramework().getEngineParallax().generateParallaxArea(x >> 4, z >> 4);
|
||||||
getFramework().getDecorantActuator().actuate(x, z, blocks);
|
getFramework().getBiomeActuator().actuate(x, z, vbiomes);
|
||||||
getFramework().getEngineParallax().insertParallax(x, z, blocks);
|
getFramework().getTerrainActuator().actuate(x, z, blocks);
|
||||||
getFramework().getDepositModifier().modify(x, z, blocks);
|
getFramework().getCaveModifier().modify(x, z, blocks);
|
||||||
|
getFramework().getRavineModifier().modify(x, z, blocks);
|
||||||
|
getFramework().getPostModifier().modify(x, z, blocks);
|
||||||
|
getFramework().getDecorantActuator().actuate(x, z, blocks);
|
||||||
|
getFramework().getEngineParallax().insertParallax(x, z, blocks);
|
||||||
|
getFramework().getDepositModifier().modify(x, z, blocks);
|
||||||
|
}
|
||||||
|
case ISLANDS -> {
|
||||||
|
getFramework().getTerrainActuator().actuate(x, z, blocks);
|
||||||
|
}
|
||||||
|
}
|
||||||
getMetrics().getTotal().put(p.getMilliseconds());
|
getMetrics().getTotal().put(p.getMilliseconds());
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
Iris.reportError(e);
|
Iris.reportError(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user