@@ -104,6 +104,9 @@ public final class SeedMapperData
104104 private static final List <String > DEFAULT_DIMENSIONS =
105105 List .of ("overworld" , "the_nether" , "the_end" );
106106
107+ private static final List <String > DEFAULT_WORLD_PRESETS = List .of (
108+ "amplified" , "superflat" , "large_biomes" , "single_biome" , "default" );
109+
107110 private static final List <String > DEFAULT_VERSION_SHORTCUTS = List .of (
108111 "auto" , "latest" , "1.21.1" , "1.21" , "1.20.6" , "1.20.4" , "1.20.2" ,
109112 "1.20.1" , "1.19.4" , "1.19.2" , "1.18.2" , "1.17.1" , "1.16.5" , "1.12.2" );
@@ -124,6 +127,7 @@ public final class SeedMapperData
124127 private final List <String > densityFunctions ;
125128 private final List <String > dimensionShortcuts ;
126129 private final List <String > versionShortcuts ;
130+ private final List <String > worldPresets ;
127131
128132 private SeedMapperData (List <String > highlightBlocks ,
129133 List <String > canyonCarvers , List <String > caveCarvers ,
@@ -132,7 +136,8 @@ private SeedMapperData(List<String> highlightBlocks,
132136 Map <String , List <String >> structureVariants ,
133137 List <String > variantKeyUnion , List <String > lootItems ,
134138 List <String > lootEnchantments , List <String > densityFunctions ,
135- List <String > dimensionShortcuts , List <String > versionShortcuts )
139+ List <String > dimensionShortcuts , List <String > versionShortcuts ,
140+ List <String > worldPresets )
136141 {
137142 this .highlightBlocks = highlightBlocks ;
138143 this .canyonCarvers = canyonCarvers ;
@@ -147,6 +152,7 @@ private SeedMapperData(List<String> highlightBlocks,
147152 this .densityFunctions = densityFunctions ;
148153 this .dimensionShortcuts = dimensionShortcuts ;
149154 this .versionShortcuts = versionShortcuts ;
155+ this .worldPresets = worldPresets ;
150156 }
151157
152158 public List <String > getHighlightBlocks ()
@@ -230,6 +236,11 @@ public List<String> getVersionShortcuts()
230236 return versionShortcuts ;
231237 }
232238
239+ public List <String > getWorldPresets ()
240+ {
241+ return worldPresets ;
242+ }
243+
233244 public List <String > getOreVeinTargets ()
234245 {
235246 return DEFAULT_ORE_VEINS ;
@@ -250,7 +261,8 @@ public static SeedMapperData createFallback()
250261 limitList (items , 1024 ), limitList (enchants , 256 ),
251262 copySorted (DEFAULT_DENSITY_FUNCTIONS ),
252263 copySorted (DEFAULT_DIMENSIONS ),
253- copySorted (DEFAULT_VERSION_SHORTCUTS ));
264+ copySorted (DEFAULT_VERSION_SHORTCUTS ),
265+ copySorted (DEFAULT_WORLD_PRESETS ));
254266 }
255267
256268 public static SeedMapperData tryLoadFromVendor ()
@@ -291,14 +303,18 @@ public static SeedMapperData tryLoadFromVendor()
291303 List <String > versionShortcuts = tryRead (supplyValueList (
292304 "dev.xpple.seedmapper.command.arguments.VersionArgument" ,
293305 "VERSIONS" ), DEFAULT_VERSION_SHORTCUTS );
306+ List <String > worldPresets = tryRead (supplyValueList (
307+ "dev.xpple.seedmapper.command.arguments.PresetArgument" , "PRESETS" ),
308+ DEFAULT_WORLD_PRESETS );
294309
295310 return new SeedMapperData (copySorted (highlightBlocks ),
296311 copySorted (canyonCarvers ), copySorted (caveCarvers ),
297312 copySorted (biomeKeys ), copySorted (structureKeys ),
298313 copyMap (structurePieces ), copyMap (structureVariants ),
299314 buildVariantUnion (structureVariants ), limitList (lootItems , 2048 ),
300315 limitList (lootEnchantments , 512 ), copySorted (densityFunctions ),
301- copySorted (dimensions ), copySorted (versionShortcuts ));
316+ copySorted (dimensions ), copySorted (versionShortcuts ),
317+ copySorted (worldPresets ));
302318 }
303319
304320 private static List <String > fallbackBiomes ()
0 commit comments