public class ChunkGeneratorType<C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>> extends Object implements ChunkGeneratorFactory<C,T>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
buffetScreenOption |
static ChunkGeneratorType<CavesChunkGeneratorConfig,CavesChunkGenerator> |
CAVES |
private Supplier<C> |
configSupplier |
static ChunkGeneratorType<DebugChunkGeneratorConfig,DebugChunkGenerator> |
DEBUG |
private ChunkGeneratorFactory<C,T> |
factory |
static ChunkGeneratorType<FlatChunkGeneratorConfig,FlatChunkGenerator> |
FLAT |
static ChunkGeneratorType<FloatingIslandsChunkGeneratorConfig,FloatingIslandsChunkGenerator> |
FLOATING_ISLANDS |
static ChunkGeneratorType<OverworldChunkGeneratorConfig,OverworldChunkGenerator> |
SURFACE |
| Constructor and Description |
|---|
ChunkGeneratorType(ChunkGeneratorFactory<C,T> factory,
boolean buffetScreenOption,
Supplier<C> configSupplier) |
| Modifier and Type | Method and Description |
|---|---|
T |
create(IWorld world,
BiomeSource biomeSource,
C config) |
C |
createConfig() |
boolean |
isBuffetScreenOption() |
private static <C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>> |
register(String id,
ChunkGeneratorFactory<C,T> factory,
Supplier<C> configSupplier,
boolean buffetScreenOption) |
public static final ChunkGeneratorType<OverworldChunkGeneratorConfig,OverworldChunkGenerator> SURFACE
public static final ChunkGeneratorType<CavesChunkGeneratorConfig,CavesChunkGenerator> CAVES
public static final ChunkGeneratorType<FloatingIslandsChunkGeneratorConfig,FloatingIslandsChunkGenerator> FLOATING_ISLANDS
public static final ChunkGeneratorType<DebugChunkGeneratorConfig,DebugChunkGenerator> DEBUG
public static final ChunkGeneratorType<FlatChunkGeneratorConfig,FlatChunkGenerator> FLAT
private final ChunkGeneratorFactory<C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>> factory
private final boolean buffetScreenOption
private final Supplier<C extends ChunkGeneratorConfig> configSupplier
public ChunkGeneratorType(ChunkGeneratorFactory<C,T> factory, boolean buffetScreenOption, Supplier<C> configSupplier)
private static <C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>> ChunkGeneratorType<C,T> register(String id, ChunkGeneratorFactory<C,T> factory, Supplier<C> configSupplier, boolean buffetScreenOption)
public T create(IWorld world, BiomeSource biomeSource, C config)
create in interface ChunkGeneratorFactory<C extends ChunkGeneratorConfig,T extends ChunkGenerator<C>>public C createConfig()
@Environment(value=CLIENT) public boolean isBuffetScreenOption()