Package net.minecraft.world.gen
Class FlatGenerationSettings
- java.lang.Object
-
- net.minecraft.world.gen.FlatGenerationSettings
-
public class FlatGenerationSettings extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
addLakes
private java.util.function.Supplier<Biome>
biome
private Registry<Biome>
biomes
static com.mojang.serialization.Codec<FlatGenerationSettings>
CODEC
private boolean
decoration
private BlockState[]
layers
private java.util.List<FlatLayerInfo>
layersInfo
private static org.apache.logging.log4j.Logger
LOGGER
private static java.util.Map<Structure<?>,StructureFeature<?,?>>
STRUCTURE_FEATURES
private DimensionStructuresSettings
structureSettings
private boolean
voidGen
-
Constructor Summary
Constructors Constructor Description FlatGenerationSettings(Registry<Biome> p_i242012_1_, DimensionStructuresSettings p_i242012_2_, java.util.List<FlatLayerInfo> p_i242012_3_, boolean p_i242012_4_, boolean p_i242012_5_, java.util.Optional<java.util.function.Supplier<Biome>> p_i242012_6_)
FlatGenerationSettings(DimensionStructuresSettings p_i242011_1_, Registry<Biome> p_i242011_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Biome
getBiome()
Biome
getBiomeFromSettings()
static FlatGenerationSettings
getDefault(Registry<Biome> p_242869_0_)
BlockState[]
getLayers()
java.util.List<FlatLayerInfo>
getLayersInfo()
void
setAddLakes()
void
setBiome(java.util.function.Supplier<Biome> p_242870_1_)
void
setDecoration()
DimensionStructuresSettings
structureSettings()
void
updateLayers()
FlatGenerationSettings
withLayers(java.util.List<FlatLayerInfo> p_241527_1_, DimensionStructuresSettings p_241527_2_)
FlatGenerationSettings
withStructureSettings(DimensionStructuresSettings p_236937_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
CODEC
public static final com.mojang.serialization.Codec<FlatGenerationSettings> CODEC
-
STRUCTURE_FEATURES
private static final java.util.Map<Structure<?>,StructureFeature<?,?>> STRUCTURE_FEATURES
-
structureSettings
private final DimensionStructuresSettings structureSettings
-
layersInfo
private final java.util.List<FlatLayerInfo> layersInfo
-
biome
private java.util.function.Supplier<Biome> biome
-
layers
private final BlockState[] layers
-
voidGen
private boolean voidGen
-
decoration
private boolean decoration
-
addLakes
private boolean addLakes
-
-
Constructor Detail
-
FlatGenerationSettings
public FlatGenerationSettings(Registry<Biome> p_i242012_1_, DimensionStructuresSettings p_i242012_2_, java.util.List<FlatLayerInfo> p_i242012_3_, boolean p_i242012_4_, boolean p_i242012_5_, java.util.Optional<java.util.function.Supplier<Biome>> p_i242012_6_)
-
FlatGenerationSettings
public FlatGenerationSettings(DimensionStructuresSettings p_i242011_1_, Registry<Biome> p_i242011_2_)
-
-
Method Detail
-
withStructureSettings
public FlatGenerationSettings withStructureSettings(DimensionStructuresSettings p_236937_1_)
-
withLayers
public FlatGenerationSettings withLayers(java.util.List<FlatLayerInfo> p_241527_1_, DimensionStructuresSettings p_241527_2_)
-
setDecoration
public void setDecoration()
-
setAddLakes
public void setAddLakes()
-
getBiomeFromSettings
public Biome getBiomeFromSettings()
-
structureSettings
public DimensionStructuresSettings structureSettings()
-
getBiome
public Biome getBiome()
-
setBiome
public void setBiome(java.util.function.Supplier<Biome> p_242870_1_)
-
getLayersInfo
public java.util.List<FlatLayerInfo> getLayersInfo()
-
getLayers
public BlockState[] getLayers()
-
updateLayers
public void updateLayers()
-
getDefault
public static FlatGenerationSettings getDefault(Registry<Biome> p_242869_0_)
-
-