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>
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 Summary
Constructors Modifier Constructor Description private
FlatChunkGeneratorConfig(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 Biome
createBiome()
void
enableFeatures()
void
enableLakes()
Biome
getBiome()
int
getBottomSectionLimit()
static FlatChunkGeneratorConfig
getDefaultConfig(Registry<Biome> biomeRegistry)
BlockState[]
getLayerBlocks()
List<FlatChunkGeneratorLayer>
getLayers()
int
getSectionCount()
StructuresConfig
getStructuresConfig()
FlatChunkGeneratorConfig
method_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig)
int
method_31926(int int2)
private static com.mojang.serialization.DataResult<FlatChunkGeneratorConfig>
method_33067(FlatChunkGeneratorConfig flatChunkGeneratorConfig)
void
setBiome(Supplier<Biome> biome)
void
updateLayerBlocks()
FlatChunkGeneratorConfig
withStructuresConfig(StructuresConfig structuresConfig)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getSectionCount
in interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimit
in interfaceHeightLimitView
-