public class LevelGeneratorOptions extends Object
Modifier and Type | Field and Description |
---|---|
private Function<IWorld,ChunkGenerator<?>> |
chunkGeneratorFactory |
private com.mojang.datafixers.Dynamic<?> |
dynamic |
private LevelGeneratorType |
type |
Constructor and Description |
---|
LevelGeneratorOptions(LevelGeneratorType type,
com.mojang.datafixers.Dynamic<?> dynamic,
Function<IWorld,ChunkGenerator<?>> chunkGeneratorFactory) |
Modifier and Type | Method and Description |
---|---|
static LevelGeneratorOptions |
createBuffet(LevelGeneratorType type,
com.mojang.datafixers.Dynamic<?> dynamic) |
ChunkGenerator<?> |
createChunkGenerator(IWorld world) |
static LevelGeneratorOptions |
createDebug(LevelGeneratorType type,
com.mojang.datafixers.Dynamic<?> dynamic) |
static LevelGeneratorOptions |
createDefault(LevelGeneratorType generatorType,
com.mojang.datafixers.Dynamic<?> dynamic) |
static LevelGeneratorOptions |
createFlat(LevelGeneratorType generatorType,
com.mojang.datafixers.Dynamic<?> dynamic) |
com.mojang.datafixers.Dynamic<?> |
getDynamic() |
LevelGeneratorType |
getType() |
private static LongFunction<BiomeSource> |
loadBiomeSourceFactory(com.mojang.datafixers.DynamicLike<?> dynamic) |
private static <C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>> |
loadChunkGeneratorFactory(com.mojang.datafixers.DynamicLike<?> dynamic,
ChunkGeneratorType<C,T> type,
LongFunction<BiomeSource> biomeSourceFactory) |
private static Function<IWorld,ChunkGenerator<?>> |
loadChunkGeneratorFactory(com.mojang.datafixers.DynamicLike<?> dynamic,
LongFunction<BiomeSource> biomeSourceFactory) |
private static void |
loadOptions(ChunkGeneratorConfig config,
com.mojang.datafixers.DynamicLike<?> dynamic) |
private static <T> T |
retrieveFromRegistry(com.mojang.datafixers.DynamicLike<?> dynamic,
Registry<T> registry,
T fallback) |
private final LevelGeneratorType type
private final com.mojang.datafixers.Dynamic<?> dynamic
private final Function<IWorld,ChunkGenerator<?>> chunkGeneratorFactory
public LevelGeneratorOptions(LevelGeneratorType type, com.mojang.datafixers.Dynamic<?> dynamic, Function<IWorld,ChunkGenerator<?>> chunkGeneratorFactory)
public LevelGeneratorType getType()
public com.mojang.datafixers.Dynamic<?> getDynamic()
public ChunkGenerator<?> createChunkGenerator(IWorld world)
public static LevelGeneratorOptions createDefault(LevelGeneratorType generatorType, com.mojang.datafixers.Dynamic<?> dynamic)
public static LevelGeneratorOptions createFlat(LevelGeneratorType generatorType, com.mojang.datafixers.Dynamic<?> dynamic)
private static <T> T retrieveFromRegistry(com.mojang.datafixers.DynamicLike<?> dynamic, Registry<T> registry, T fallback)
private static LongFunction<BiomeSource> loadBiomeSourceFactory(com.mojang.datafixers.DynamicLike<?> dynamic)
private static void loadOptions(ChunkGeneratorConfig config, com.mojang.datafixers.DynamicLike<?> dynamic)
private static Function<IWorld,ChunkGenerator<?>> loadChunkGeneratorFactory(com.mojang.datafixers.DynamicLike<?> dynamic, LongFunction<BiomeSource> biomeSourceFactory)
private static <C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>> Function<IWorld,ChunkGenerator<?>> loadChunkGeneratorFactory(com.mojang.datafixers.DynamicLike<?> dynamic, ChunkGeneratorType<C,T> type, LongFunction<BiomeSource> biomeSourceFactory)
public static LevelGeneratorOptions createBuffet(LevelGeneratorType type, com.mojang.datafixers.Dynamic<?> dynamic)
public static LevelGeneratorOptions createDebug(LevelGeneratorType type, com.mojang.datafixers.Dynamic<?> dynamic)