public class FlatChunkGeneratorConfig extends Object
Modifier and Type | Field and Description |
---|---|
private Supplier<Biome> |
biome |
private Registry<Biome> |
biomeRegistry |
static com.mojang.serialization.Codec<FlatChunkGeneratorConfig> |
CODEC |
private boolean |
hasFeatures |
private boolean |
hasLakes |
private boolean |
hasNoTerrain |
private BlockState[] |
layerBlocks |
private List<FlatChunkGeneratorLayer> |
layers |
private static Logger |
LOGGER |
private static Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>> |
STRUCTURE_TO_FEATURES |
private StructuresConfig |
structuresConfig |
Constructor and Description |
---|
FlatChunkGeneratorConfig(Registry<Biome> biomeRegistry,
StructuresConfig structuresConfig,
List<FlatChunkGeneratorLayer> layers,
boolean hasLakes,
boolean hasFeatures,
Optional<Supplier<Biome>> biome) |
FlatChunkGeneratorConfig(StructuresConfig structuresConfig,
Registry<Biome> biomeRegistry) |
Modifier and Type | Method and Description |
---|---|
Biome |
createBiome() |
void |
enableFeatures() |
void |
enableLakes() |
Biome |
getBiome() |
static FlatChunkGeneratorConfig |
getDefaultConfig(Registry<Biome> biomeRegistry) |
BlockState[] |
getLayerBlocks() |
List<FlatChunkGeneratorLayer> |
getLayers() |
StructuresConfig |
getStructuresConfig() |
FlatChunkGeneratorConfig |
method_29965(List<FlatChunkGeneratorLayer> list,
StructuresConfig structuresConfig) |
void |
setBiome(Supplier<Biome> biome) |
void |
updateLayerBlocks() |
FlatChunkGeneratorConfig |
withStructuresConfig(StructuresConfig structuresConfig) |
private static final Logger LOGGER
public static final com.mojang.serialization.Codec<FlatChunkGeneratorConfig> CODEC
private static final Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>> STRUCTURE_TO_FEATURES
private final StructuresConfig structuresConfig
private final List<FlatChunkGeneratorLayer> layers
private final BlockState[] layerBlocks
private boolean hasNoTerrain
private boolean hasFeatures
private boolean hasLakes
public FlatChunkGeneratorConfig(Registry<Biome> biomeRegistry, StructuresConfig structuresConfig, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<Supplier<Biome>> biome)
public FlatChunkGeneratorConfig(StructuresConfig structuresConfig, Registry<Biome> biomeRegistry)
@Environment(value=CLIENT) public FlatChunkGeneratorConfig withStructuresConfig(StructuresConfig structuresConfig)
@Environment(value=CLIENT) public FlatChunkGeneratorConfig method_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig)
public void enableFeatures()
public void enableLakes()
public Biome createBiome()
public StructuresConfig getStructuresConfig()
public Biome getBiome()
public List<FlatChunkGeneratorLayer> getLayers()
public BlockState[] getLayerBlocks()
public void updateLayerBlocks()
public static FlatChunkGeneratorConfig getDefaultConfig(Registry<Biome> biomeRegistry)