Package net.minecraft.world.gen.chunk
Class FlatChunkGeneratorConfig
java.lang.Object
net.minecraft.world.gen.chunk.FlatChunkGeneratorConfig
- All Implemented Interfaces:
HeightLimitView
public class FlatChunkGeneratorConfig extends Object implements HeightLimitView
-
Field Summary
Fields Modifier and Type Field Description private Supplier<Biome>biomeprivate Registry<Biome>biomeRegistrystatic com.mojang.serialization.Codec<FlatChunkGeneratorConfig>CODECprivate booleanhasFeaturesprivate booleanhasLakesprivate booleanhasNoTerrainprivate BlockState[]layerBlocksprivate List<FlatChunkGeneratorLayer>layersprivate static LoggerLOGGERprivate static Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>>STRUCTURE_TO_FEATURESprivate StructuresConfigstructuresConfig -
Constructor Summary
Constructors Modifier Constructor Description privateFlatChunkGeneratorConfig(Registry<Biome> biomeRegistry, StructuresConfig structuresConfig, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<Supplier<Biome>> biome)FlatChunkGeneratorConfig(StructuresConfig structuresConfig, Registry<Biome> biomeRegistry) -
Method Summary
Modifier and Type Method Description BiomecreateBiome()voidenableFeatures()voidenableLakes()BiomegetBiome()intgetBottomSectionLimit()static FlatChunkGeneratorConfiggetDefaultConfig(Registry<Biome> biomeRegistry)BlockState[]getLayerBlocks()List<FlatChunkGeneratorLayer>getLayers()intgetSectionCount()StructuresConfiggetStructuresConfig()FlatChunkGeneratorConfigmethod_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig)intmethod_31926(int int2)private static com.mojang.serialization.DataResult<FlatChunkGeneratorConfig>method_33067(FlatChunkGeneratorConfig flatChunkGeneratorConfig)voidsetBiome(Supplier<Biome> biome)voidupdateLayerBlocks()FlatChunkGeneratorConfigwithStructuresConfig(StructuresConfig structuresConfig)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.HeightLimitView
getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Field Details
-
LOGGER
-
CODEC
-
STRUCTURE_TO_FEATURES
private static final Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>> STRUCTURE_TO_FEATURES -
biomeRegistry
-
structuresConfig
-
layers
-
biome
-
layerBlocks
-
hasNoTerrain
private boolean hasNoTerrain -
hasFeatures
private boolean hasFeatures -
hasLakes
private boolean hasLakes
-
-
Constructor Details
-
FlatChunkGeneratorConfig
private FlatChunkGeneratorConfig(Registry<Biome> biomeRegistry, StructuresConfig structuresConfig, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<Supplier<Biome>> biome) -
FlatChunkGeneratorConfig
-
-
Method Details
-
method_33067
private static com.mojang.serialization.DataResult<FlatChunkGeneratorConfig> method_33067(FlatChunkGeneratorConfig flatChunkGeneratorConfig) -
withStructuresConfig
@Environment(CLIENT) public FlatChunkGeneratorConfig withStructuresConfig(StructuresConfig structuresConfig) -
method_29965
@Environment(CLIENT) public FlatChunkGeneratorConfig method_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig) -
enableFeatures
public void enableFeatures() -
enableLakes
public void enableLakes() -
createBiome
-
getStructuresConfig
-
getBiome
-
setBiome
-
getLayers
-
getLayerBlocks
-
updateLayerBlocks
public void updateLayerBlocks() -
getDefaultConfig
-
method_31926
public int method_31926(int int2) -
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView
-