minor variable refactoring
This commit is contained in:
@@ -1576,14 +1576,6 @@ public class Config
|
||||
+ "This can be useful for debugging.")
|
||||
.build();
|
||||
|
||||
public static ConfigEntry<EDhApiLoggerLevel> logWorldGenPerformanceToFile = new ConfigEntry.Builder<EDhApiLoggerLevel>()
|
||||
.setChatCommandName("logging.logWorldGenPerformance")
|
||||
.set(EDhApiLoggerLevel.INFO)
|
||||
.comment(""
|
||||
+ "If enabled, the mod will log performance about the world generation process. \n"
|
||||
+ "This can be useful for debugging.")
|
||||
.build();
|
||||
|
||||
public static ConfigEntry<EDhApiLoggerLevel> logWorldGenChunkLoadEventToFile = new ConfigEntry.Builder<EDhApiLoggerLevel>()
|
||||
.setChatCommandName("logging.logWorldGenLoadEvent")
|
||||
.set(EDhApiLoggerLevel.INFO)
|
||||
|
||||
@@ -92,7 +92,7 @@ public class BatchGenerator implements IDhApiWorldGenerator
|
||||
public CompletableFuture<Void> generateChunks(
|
||||
int chunkPosMinX,
|
||||
int chunkPosMinZ,
|
||||
int generationRequestChunkWidthCount,
|
||||
int chunkWidthCount,
|
||||
byte targetDataDetail,
|
||||
EDhApiDistantGeneratorMode generatorMode,
|
||||
ExecutorService worldGeneratorThreadPool,
|
||||
@@ -123,8 +123,8 @@ public class BatchGenerator implements IDhApiWorldGenerator
|
||||
Consumer<IChunkWrapper> consumerWrapper = (chunkWrapper) -> resultConsumer.accept(new Object[]{chunkWrapper});
|
||||
try
|
||||
{
|
||||
return this.generationEnvironment.generateChunks(
|
||||
chunkPosMinX, chunkPosMinZ, generationRequestChunkWidthCount,
|
||||
return this.generationEnvironment.queueGenEvent(
|
||||
chunkPosMinX, chunkPosMinZ, chunkWidthCount,
|
||||
generatorMode, targetStep,
|
||||
worldGeneratorThreadPool, consumerWrapper);
|
||||
}
|
||||
|
||||
+1
-2
@@ -21,7 +21,6 @@ package com.seibel.distanthorizons.core.wrapperInterfaces.worldGeneration;
|
||||
|
||||
import com.seibel.distanthorizons.api.enums.worldGeneration.EDhApiDistantGeneratorMode;
|
||||
import com.seibel.distanthorizons.api.enums.worldGeneration.EDhApiWorldGenerationStep;
|
||||
import com.seibel.distanthorizons.core.level.IDhLevel;
|
||||
import com.seibel.distanthorizons.core.wrapperInterfaces.chunk.IChunkWrapper;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
@@ -32,7 +31,7 @@ public interface IBatchGeneratorEnvironmentWrapper extends AutoCloseable
|
||||
{
|
||||
void updateAllFutures();
|
||||
|
||||
CompletableFuture<Void> generateChunks(
|
||||
CompletableFuture<Void> queueGenEvent(
|
||||
int minX, int minZ, int genSize,
|
||||
EDhApiDistantGeneratorMode generatorMode, EDhApiWorldGenerationStep targetStep,
|
||||
ExecutorService worldGeneratorThreadPool, Consumer<IChunkWrapper> resultConsumer);
|
||||
|
||||
Reference in New Issue
Block a user