mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 02:03:59 +00:00
Update engine compounds for iris worlds
This commit is contained in:
parent
879bcdf8d8
commit
1bb9090434
@ -28,6 +28,7 @@ import com.volmit.iris.engine.hunk.Hunk;
|
||||
import com.volmit.iris.engine.object.IrisDimension;
|
||||
import com.volmit.iris.engine.object.IrisDimensionIndex;
|
||||
import com.volmit.iris.engine.object.IrisPosition;
|
||||
import com.volmit.iris.engine.object.common.IrisWorld;
|
||||
import com.volmit.iris.engine.parallel.MultiBurst;
|
||||
import com.volmit.iris.util.atomics.AtomicRollingSequence;
|
||||
import com.volmit.iris.util.collection.KList;
|
||||
@ -50,7 +51,7 @@ import java.util.List;
|
||||
|
||||
public class IrisEngineCompound implements EngineCompound {
|
||||
@Getter
|
||||
private World world;
|
||||
private IrisWorld world;
|
||||
|
||||
private final AtomicRollingSequence wallClock;
|
||||
|
||||
@ -77,7 +78,7 @@ public class IrisEngineCompound implements EngineCompound {
|
||||
@Setter
|
||||
private boolean studio;
|
||||
|
||||
public IrisEngineCompound(World world, IrisDimension rootDimension, IrisDataManager data, int maximumThreads) {
|
||||
public IrisEngineCompound(IrisWorld world, IrisDimension rootDimension, IrisDataManager data, int maximumThreads) {
|
||||
wallClock = new AtomicRollingSequence(32);
|
||||
this.rootDimension = rootDimension;
|
||||
Iris.info("Initializing Engine Composite for " + world.getName());
|
||||
@ -274,11 +275,6 @@ public class IrisEngineCompound implements EngineCompound {
|
||||
return defaultEngine;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateWorld(World world) {
|
||||
this.world = world;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hotload() {
|
||||
for (int i = 0; i < getSize(); i++) {
|
||||
|
@ -26,6 +26,7 @@ import com.volmit.iris.engine.hunk.Hunk;
|
||||
import com.volmit.iris.engine.object.IrisBiome;
|
||||
import com.volmit.iris.engine.object.IrisDimension;
|
||||
import com.volmit.iris.engine.object.IrisPosition;
|
||||
import com.volmit.iris.engine.object.common.IrisWorld;
|
||||
import com.volmit.iris.engine.parallel.MultiBurst;
|
||||
import com.volmit.iris.util.collection.KList;
|
||||
import com.volmit.iris.util.collection.KMap;
|
||||
@ -43,7 +44,7 @@ public interface EngineCompound extends Listener, Hotloadable, DataProvider {
|
||||
|
||||
void generate(int x, int z, Hunk<BlockData> blocks, Hunk<BlockData> postblocks, Hunk<Biome> biomes);
|
||||
|
||||
World getWorld();
|
||||
IrisWorld getWorld();
|
||||
|
||||
List<IrisPosition> getStrongholdPositions();
|
||||
|
||||
@ -149,8 +150,6 @@ public interface EngineCompound extends Listener, Hotloadable, DataProvider {
|
||||
return v.v();
|
||||
}
|
||||
|
||||
void updateWorld(World world);
|
||||
|
||||
default int getLowestBedrock() {
|
||||
int f = Integer.MAX_VALUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user