public final class ChunkGeneratorSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
static ChunkGeneratorSettings |
AMPLIFIED |
private int |
bedrockCeilingY |
private int |
bedrockFloorY |
static ChunkGeneratorSettings |
CAVES |
static com.mojang.serialization.Codec<ChunkGeneratorSettings> |
CODEC |
private BlockState |
defaultBlock |
private BlockState |
defaultFluid |
static ChunkGeneratorSettings |
END |
static ChunkGeneratorSettings |
FLOATING_ISLANDS |
private GenerationShapeConfig |
generationShapeConfig |
private Optional<Identifier> |
id |
private boolean |
mobGenerationDisabled |
static ChunkGeneratorSettings |
NETHER |
static 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) |
private |
ChunkGeneratorSettings(StructuresConfig structuresConfig,
GenerationShapeConfig generationShapeConfig,
BlockState defaultBlock,
BlockState defaultFluid,
int bedrockCeilingY,
int bedrockFloorY,
int seaLevel,
boolean mobGenerationDisabled,
Optional<Identifier> id) |
public static final com.mojang.serialization.Codec<ChunkGeneratorSettings> CODEC
public static final com.mojang.serialization.Codec<Supplier<ChunkGeneratorSettings>> REGISTRY_CODEC
public static final ChunkGeneratorSettings OVERWORLD
public static final ChunkGeneratorSettings AMPLIFIED
public static final ChunkGeneratorSettings NETHER
public static final ChunkGeneratorSettings END
public static final ChunkGeneratorSettings CAVES
public static final ChunkGeneratorSettings FLOATING_ISLANDS
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 final Optional<Identifier> id
private ChunkGeneratorSettings(StructuresConfig structuresConfig, GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, int bedrockCeilingY, int bedrockFloorY, int seaLevel, boolean mobGenerationDisabled)
private ChunkGeneratorSettings(StructuresConfig structuresConfig, GenerationShapeConfig generationShapeConfig, BlockState defaultBlock, BlockState defaultFluid, int bedrockCeilingY, int bedrockFloorY, int seaLevel, boolean mobGenerationDisabled, Optional<Identifier> id)
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()
public boolean isIdEqual(ChunkGeneratorSettings settings)
private static ChunkGeneratorSettings register(ChunkGeneratorSettings settings)
private static ChunkGeneratorSettings method_30642(StructuresConfig structuresConfig, BlockState blockState, BlockState blockState2, Identifier identifier, boolean bool, boolean bool2)
private static ChunkGeneratorSettings method_30641(StructuresConfig structuresConfig, BlockState blockState, BlockState blockState2, Identifier identifier)
private static ChunkGeneratorSettings method_30643(StructuresConfig structuresConfig, boolean bool, Identifier identifier)