minor variable refactoring

This commit is contained in:
James Seibel
2025-11-22 11:01:53 -06:00
parent 33a55dc7cd
commit 47a4d1535f
3 changed files with 4 additions and 13 deletions
@@ -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);
}
@@ -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);