mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
sync
This commit is contained in:
@@ -56,7 +56,7 @@ public class CommandDeveloper implements DecreeExecutor {
|
|||||||
Iris.info(C.DARK_PURPLE + "Tectonic Limit: " + C.LIGHT_PURPLE + engine.getMantle().getTectonicLimit());
|
Iris.info(C.DARK_PURPLE + "Tectonic Limit: " + C.LIGHT_PURPLE + engine.getMantle().getTectonicLimit());
|
||||||
Iris.info(C.DARK_PURPLE + "Tectonic Plates: " + C.LIGHT_PURPLE + engine.getMantle().getLoadedRegionCount());
|
Iris.info(C.DARK_PURPLE + "Tectonic Plates: " + C.LIGHT_PURPLE + engine.getMantle().getLoadedRegionCount());
|
||||||
Iris.info(C.DARK_PURPLE + "Tectonic ToUnload: " + C.LIGHT_PURPLE + outputToUnload);
|
Iris.info(C.DARK_PURPLE + "Tectonic ToUnload: " + C.LIGHT_PURPLE + outputToUnload);
|
||||||
Iris.info(C.DARK_PURPLE + "Tectonic Unload Duration: " + C.LIGHT_PURPLE + Form.duration(engine.getMantle().getTectonicDuration()));
|
Iris.info(C.DARK_PURPLE + "Tectonic Unload Duration: " + C.LIGHT_PURPLE + Form.duration((long) engine.getMantle().getTectonicDuration()));
|
||||||
Iris.info(C.DARK_PURPLE + "Cache Size: " + C.LIGHT_PURPLE + Form.f(IrisData.cacheSize()));
|
Iris.info(C.DARK_PURPLE + "Cache Size: " + C.LIGHT_PURPLE + Form.f(IrisData.cacheSize()));
|
||||||
Iris.info(C.DARK_PURPLE + "LastUse Size: " + C.LIGHT_PURPLE + Form.mem(lastUseSize));
|
Iris.info(C.DARK_PURPLE + "LastUse Size: " + C.LIGHT_PURPLE + Form.mem(lastUseSize));
|
||||||
Iris.info("-------------------------");
|
Iris.info("-------------------------");
|
||||||
|
|||||||
@@ -295,10 +295,10 @@ public interface EngineMantle extends IObjectPlacer {
|
|||||||
default long getToUnload(){
|
default long getToUnload(){
|
||||||
return getMantle().ToUnloadTectonic();
|
return getMantle().ToUnloadTectonic();
|
||||||
}
|
}
|
||||||
default long getTectonicLimit(){
|
default double getTectonicLimit(){
|
||||||
return getTectonicLimit();
|
return getMantle().getTectonicLimit();
|
||||||
}
|
}
|
||||||
default long getTectonicDuration(){
|
default double getTectonicDuration(){
|
||||||
return getMantle().getTectonicUnloadDuration();
|
return getMantle().getTectonicUnloadDuration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -403,6 +403,7 @@ public class Mantle {
|
|||||||
@Getter
|
@Getter
|
||||||
AtomicInteger FakeToUnload = new AtomicInteger(0);
|
AtomicInteger FakeToUnload = new AtomicInteger(0);
|
||||||
AtomicDouble adjustedIdleDuration = new AtomicDouble(0);
|
AtomicDouble adjustedIdleDuration = new AtomicDouble(0);
|
||||||
|
@Getter
|
||||||
double tectonicLimit = 30;
|
double tectonicLimit = 30;
|
||||||
|
|
||||||
|
|
||||||
@@ -477,11 +478,10 @@ public class Mantle {
|
|||||||
public long ToUnloadTectonic(){
|
public long ToUnloadTectonic(){
|
||||||
return FakeToUnload.get();
|
return FakeToUnload.get();
|
||||||
}
|
}
|
||||||
public long getTectonicUnloadDuration(){
|
public double getTectonicUnloadDuration(){
|
||||||
return (long) adjustedIdleDuration.get();
|
return adjustedIdleDuration.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This retreives a future of the Tectonic Plate at the given coordinates.
|
* This retreives a future of the Tectonic Plate at the given coordinates.
|
||||||
* All methods accessing tectonic plates should go through this method
|
* All methods accessing tectonic plates should go through this method
|
||||||
|
|||||||
Reference in New Issue
Block a user