Package net.minecraft.world.gen.chunk
Class ChunkGeneratorSettings
java.lang.Object
net.minecraft.world.gen.chunk.ChunkGeneratorSettings
public final class ChunkGeneratorSettings extends Object
-
Field Summary
Fields Modifier and Type Field Description static RegistryKey<ChunkGeneratorSettings>
AMPLIFIED
private int
bedrockCeilingY
private int
bedrockFloorY
static RegistryKey<ChunkGeneratorSettings>
CAVES
static com.mojang.serialization.Codec<ChunkGeneratorSettings>
CODEC
private BlockState
defaultBlock
private BlockState
defaultFluid
static RegistryKey<ChunkGeneratorSettings>
END
static RegistryKey<ChunkGeneratorSettings>
FLOATING_ISLANDS
private GenerationShapeConfig
generationShapeConfig
private static ChunkGeneratorSettings
INSTANCE
private boolean
mobGenerationDisabled
static RegistryKey<ChunkGeneratorSettings>
NETHER
static RegistryKey<ChunkGeneratorSettings>
OVERWORLD
static com.mojang.serialization.Codec<Supplier<ChunkGeneratorSettings>>
REGISTRY_CODEC
private int
seaLevel
private StructuresConfig
structuresConfig
-
Constructor Summary
Constructors Modifier Constructor Description private
ChunkGeneratorSettings(StructuresConfig structuresConfig, GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, int bedrockCeilingY, int bedrockFloorY, int seaLevel, boolean mobGenerationDisabled)
-
Method Summary
-
Field Details
-
CODEC
-
REGISTRY_CODEC
-
OVERWORLD
-
AMPLIFIED
-
NETHER
-
END
-
CAVES
-
FLOATING_ISLANDS
-
INSTANCE
-
structuresConfig
-
generationShapeConfig
-
defaultBlock
-
defaultFluid
-
bedrockCeilingY
private final int bedrockCeilingY -
bedrockFloorY
private final int bedrockFloorY -
seaLevel
private final int seaLevel -
mobGenerationDisabled
private final boolean mobGenerationDisabled
-
-
Constructor Details
-
ChunkGeneratorSettings
private ChunkGeneratorSettings(StructuresConfig structuresConfig, GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, int bedrockCeilingY, int bedrockFloorY, int seaLevel, boolean mobGenerationDisabled)
-
-
Method Details
-
getStructuresConfig
-
getGenerationShapeConfig
-
getDefaultBlock
-
getDefaultFluid
-
getBedrockCeilingY
public int getBedrockCeilingY()Returns the Y level of the bedrock ceiling.If a number less than 1 is returned, the ceiling will not be generated.
-
getBedrockFloorY
public int getBedrockFloorY()Returns the Y level of the bedrock floor.If a number greater than 255 is returned, the floor will not be generated.
-
getSeaLevel
public int getSeaLevel() -
isMobGenerationDisabled
Deprecated.Whether entities will be generated during chunk population.It does not control whether spawns will occur during gameplay.
-
equals
-
register
private static ChunkGeneratorSettings register(RegistryKey<ChunkGeneratorSettings> registryKey, ChunkGeneratorSettings settings) -
getInstance
-
createIslandSettings
private static ChunkGeneratorSettings createIslandSettings(StructuresConfig structuresConfig, BlockState defaultBlock, BlockState defaultFluid, Identifier id, boolean mobGenerationDisabled, boolean islandNoiseOverride) -
createUndergroundSettings
private static ChunkGeneratorSettings createUndergroundSettings(StructuresConfig structuresConfig, BlockState defaultBlock, BlockState defaultFluid, Identifier id) -
createSurfaceSettings
private static ChunkGeneratorSettings createSurfaceSettings(StructuresConfig structuresConfig, boolean amplified, Identifier id)
-