rename generation mode FULL -> INTERNAL_SERVER

This commit is contained in:
James Seibel
2024-12-14 14:05:36 -06:00
parent 69050bb840
commit 76b3e81cb1
5 changed files with 7 additions and 11 deletions
@@ -79,12 +79,12 @@ public enum EDhApiDistantGeneratorMode
/**
* Ask the server to generate/load each chunk.
* This is the most compatible and will generate structures correctly,
* but will cause server/simulation lag. <br><br>
* but may cause server/simulation lag. <br><br>
*
* Unlike other modes this option DOES save generated chunks to
* Minecraft's region files.
*/
FULL((byte) 7);
INTERNAL_SERVER((byte) 6);
@@ -1170,13 +1170,12 @@ public class Config
+ "Generate everything except structures. \n"
+ "WARNING: This may cause world generator bugs or instability when paired with certain world generator mods. \n"
+ "\n"
+ EDhApiDistantGeneratorMode.FULL + " \n"
+ EDhApiDistantGeneratorMode.INTERNAL_SERVER + " \n"
+ "Ask the local server to generate/load each chunk. \n"
+ "This is the most compatible and will generate structures correctly, \n"
+ "but will cause server/simulation lag. \n"
+ "but may cause server/simulation lag. \n"
+ "Note: unlike other modes this option DOES save generated chunks to \n"
+ "Minecraft's region files. \n"
+ "- Slow (15-50 ms, with spikes up to 200 ms) \n"
+ "")
.build();
@@ -26,9 +26,7 @@ import com.seibel.distanthorizons.core.level.IDhLevel;
import com.seibel.distanthorizons.core.logging.DhLoggerBuilder;
import com.seibel.distanthorizons.core.wrapperInterfaces.chunk.IChunkWrapper;
import com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IOverrideInjector;
import com.seibel.distanthorizons.core.config.Config;
import com.seibel.distanthorizons.api.enums.worldGeneration.EDhApiDistantGeneratorMode;
import com.seibel.distanthorizons.coreapi.util.BitShiftUtil;
import com.seibel.distanthorizons.core.util.LodUtil;
import com.seibel.distanthorizons.core.wrapperInterfaces.IWrapperFactory;
import com.seibel.distanthorizons.core.wrapperInterfaces.worldGeneration.AbstractBatchGenerationEnvironmentWrapper;
@@ -111,7 +109,7 @@ public class BatchGenerator implements IDhApiWorldGenerator
case FEATURES:
targetStep = EDhApiWorldGenerationStep.FEATURES;
break;
case FULL:
case INTERNAL_SERVER:
targetStep = EDhApiWorldGenerationStep.LIGHT; // TODO using something other than LIGHT would be good for clarity
break;
}
@@ -109,7 +109,6 @@ public interface IChunkWrapper extends IBindable
&& blockPos.z >= this.getMinBlockZ() && blockPos.z <= this.getMaxBlockZ());
}
boolean doNearbyChunksExist();
String toString();
@@ -879,8 +879,8 @@
"Surface",
"distanthorizons.config.enum.EDhApiDistantGeneratorMode.FEATURES":
"Features",
"distanthorizons.config.enum.EDhApiDistantGeneratorMode.FULL":
"Full",
"distanthorizons.config.enum.EDhApiDistantGeneratorMode.INTERNAL_SERVER":
"Internal Server",
"distanthorizons.config.enum.EDhApiDataCompressionMode.UNCOMPRESSED":
"Uncompressed",