public final class ChunkGeneratorSettings extends Object
Modifier and Type | Field and 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 |
Modifier | Constructor and Description |
---|---|
private |
ChunkGeneratorSettings(StructuresConfig structuresConfig,
GenerationShapeConfig generationShapeConfig,
BlockState defaultBlock,
BlockState defaultFluid,
int bedrockCeilingY,
int bedrockFloorY,
int seaLevel,
boolean mobGenerationDisabled) |
public static final com.mojang.serialization.Codec<ChunkGeneratorSettings> CODEC
public static final com.mojang.serialization.Codec<Supplier<ChunkGeneratorSettings>> REGISTRY_CODEC
public static final RegistryKey<ChunkGeneratorSettings> OVERWORLD
public static final RegistryKey<ChunkGeneratorSettings> AMPLIFIED
public static final RegistryKey<ChunkGeneratorSettings> NETHER
public static final RegistryKey<ChunkGeneratorSettings> END
public static final RegistryKey<ChunkGeneratorSettings> CAVES
public static final RegistryKey<ChunkGeneratorSettings> FLOATING_ISLANDS
private static final ChunkGeneratorSettings INSTANCE
private final StructuresConfig structuresConfig
private final GenerationShapeConfig generationShapeConfig
private final BlockState defaultBlock
private final BlockState defaultFluid
private final int bedrockCeilingY
private final int bedrockFloorY
private final int seaLevel
private final boolean mobGenerationDisabled
private ChunkGeneratorSettings(StructuresConfig structuresConfig, GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, int bedrockCeilingY, int bedrockFloorY, int seaLevel, boolean mobGenerationDisabled)
public StructuresConfig getStructuresConfig()
public GenerationShapeConfig getGenerationShapeConfig()
public BlockState getDefaultBlock()
public BlockState getDefaultFluid()
public int getBedrockCeilingY()
If a number less than 1 is returned, the ceiling will not be generated.
public int getBedrockFloorY()
If a number greater than 255 is returned, the floor will not be generated.
public int getSeaLevel()
@Deprecated protected boolean isMobGenerationDisabled()
It does not control whether spawns will occur during gameplay.
public boolean equals(RegistryKey<ChunkGeneratorSettings> registryKey)
private static ChunkGeneratorSettings register(RegistryKey<ChunkGeneratorSettings> registryKey, ChunkGeneratorSettings settings)
public static ChunkGeneratorSettings getInstance()
private static ChunkGeneratorSettings createIslandSettings(StructuresConfig structuresConfig, BlockState defaultBlock, BlockState defaultFluid, Identifier id, boolean mobGenerationDisabled, boolean islandNoiseOverride)
private static ChunkGeneratorSettings createUndergroundSettings(StructuresConfig structuresConfig, BlockState defaultBlock, BlockState defaultFluid, Identifier id)
private static ChunkGeneratorSettings createSurfaceSettings(StructuresConfig structuresConfig, boolean amplified, Identifier id)