Class FlatLevelGeneratorSettings
java.lang.Object
net.minecraft.world.level.levelgen.flat.FlatLevelGeneratorSettings
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
static final com.mojang.serialization.Codec<FlatLevelGeneratorSettings>
private boolean
private final List<BlockState>
private final List<FlatLayerInfo>
private static final org.slf4j.Logger
private final Optional<HolderSet<StructureSet>>
private boolean
-
Constructor Summary
ModifierConstructorDescriptionFlatLevelGeneratorSettings
(Optional<HolderSet<StructureSet>> p_209797_, Registry<Biome> p_209798_) private
FlatLevelGeneratorSettings
(Registry<Biome> p_209790_, Optional<HolderSet<StructureSet>> p_209791_, List<FlatLayerInfo> p_209792_, boolean p_209793_, boolean p_209794_, Optional<Holder<Biome>> p_209795_) -
Method Summary
Modifier and TypeMethodDescriptionadjustGenerationSettings
(Holder<Biome> p_226295_) getBiome()
static FlatLevelGeneratorSettings
getDefault
(Registry<Biome> p_211735_, Registry<StructureSet> p_211736_) void
void
void
void
private static com.mojang.serialization.DataResult<FlatLevelGeneratorSettings>
validateHeight
(FlatLevelGeneratorSettings p_161906_) withLayers
(List<FlatLayerInfo> p_209804_, Optional<HolderSet<StructureSet>> p_209805_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CODEC
-
biomes
-
structureOverrides
-
layersInfo
-
biome
-
layers
-
voidGen
private boolean voidGen -
decoration
private boolean decoration -
addLakes
private boolean addLakes
-
-
Constructor Details
-
FlatLevelGeneratorSettings
private FlatLevelGeneratorSettings(Registry<Biome> p_209790_, Optional<HolderSet<StructureSet>> p_209791_, List<FlatLayerInfo> p_209792_, boolean p_209793_, boolean p_209794_, Optional<Holder<Biome>> p_209795_) -
FlatLevelGeneratorSettings
public FlatLevelGeneratorSettings(Optional<HolderSet<StructureSet>> p_209797_, Registry<Biome> p_209798_)
-
-
Method Details
-
validateHeight
private static com.mojang.serialization.DataResult<FlatLevelGeneratorSettings> validateHeight(FlatLevelGeneratorSettings p_161906_) -
withLayers
public FlatLevelGeneratorSettings withLayers(List<FlatLayerInfo> p_209804_, Optional<HolderSet<StructureSet>> p_209805_) -
setDecoration
public void setDecoration() -
setAddLakes
public void setAddLakes() -
adjustGenerationSettings
-
structureOverrides
-
getBiome
-
setBiome
-
getLayersInfo
-
getLayers
-
updateLayers
public void updateLayers() -
getDefault
public static FlatLevelGeneratorSettings getDefault(Registry<Biome> p_211735_, Registry<StructureSet> p_211736_)
-