public class FlatChunkGeneratorConfig extends ChunkGeneratorConfig
defaultBlock, defaultFluid, endCityDistance, endCitySeparation, mansionDistance, mansionSeparation, netherRuinedPortalSeparation, netherRuinedPortalSpacing, netherStructureSeedModifier, netherStructureSeparation, netherStructureSpacing, oceanMonumentSeparation, oceanMonumentSpacing, oceanRuinSeparation, oceanRuinSpacing, ruinedPortalSeparation, ruinedPortalSpacing, shipwreckSeparation, shipwreckSpacing, strongholdCount, strongholdDistance, strongholdSpread, templeDistance, templeSeparation, villageDistance, villageSeparation
Constructor and Description |
---|
FlatChunkGeneratorConfig() |
Modifier and Type | Method and Description |
---|---|
private void |
addStructure(String id) |
static FlatChunkGeneratorConfig |
fromDynamic(com.mojang.datafixers.Dynamic<?> dynamic) |
static FlatChunkGeneratorConfig |
fromString(String string) |
Biome |
getBiome() |
static FlatChunkGeneratorConfig |
getDefaultConfig() |
BlockState[] |
getLayerBlocks() |
List<FlatChunkGeneratorLayer> |
getLayers() |
Map<String,Map<String,String>> |
getStructures() |
boolean |
hasNoTerrain() |
static Block |
parseBlock(String string) |
private static List<FlatChunkGeneratorLayer> |
parseLayersString(String string) |
private static FlatChunkGeneratorLayer |
parseLayerString(String string,
int startY) |
void |
removeLayerBlock(int layer) |
void |
setBiome(Biome biome) |
private void |
setStructureOption(String structure,
String key,
String value) |
<T> com.mojang.datafixers.Dynamic<T> |
toDynamic(com.mojang.datafixers.types.DynamicOps<T> dynamicOps) |
String |
toString() |
void |
updateLayerBlocks() |
getBedrockCeilingY, getBedrockFloorY, getDefaultBlock, getDefaultFluid, getEndCityDistance, getEndCitySeparation, getMansionDistance, getMansionSeparation, getNetherStructureSeedModifier, getNetherStructureSeparation, getNetherStructureSpacing, getOceanMonumentSeparation, getOceanMonumentSpacing, getOceanRuinSeparation, getOceanRuinSpacing, getRuinedPortalSeparation, getRuinedPortalSpacing, getShipwreckSeparation, getShipwreckSpacing, getStrongholdCount, getStrongholdDistance, getStrongholdSpread, getTempleDistance, getTempleSeparation, getVillageDistance, getVillageSeparation, setDefaultBlock, setDefaultFluid
private static final Logger LOGGER
private static final ConfiguredFeature<?,?> MINESHAFT
private static final ConfiguredFeature<?,?> VILLAGE
private static final ConfiguredFeature<?,?> STRONGHOLD
private static final ConfiguredFeature<?,?> SWAMP_HUT
private static final ConfiguredFeature<?,?> DESERT_PYRAMID
private static final ConfiguredFeature<?,?> JUNGLE_TEMPLE
private static final ConfiguredFeature<?,?> IGLOO
private static final ConfiguredFeature<?,?> field_24017
private static final ConfiguredFeature<?,?> SHIPWRECK
private static final ConfiguredFeature<?,?> OCEAN_MONUMENT
private static final ConfiguredFeature<?,?> WATER_LAKE
private static final ConfiguredFeature<?,?> LAVA_LAKE
private static final ConfiguredFeature<?,?> END_CITY
private static final ConfiguredFeature<?,?> WOODLAND_MANSION
private static final ConfiguredFeature<?,?> NETHER_BRIDGE
private static final ConfiguredFeature<?,?> OCEAN_RUIN
private static final ConfiguredFeature<?,?> PILLAGER_OUTPOST
public static final Map<ConfiguredFeature<?,?>,GenerationStep.Feature> FEATURE_TO_GENERATION_STEP
public static final Map<String,ConfiguredFeature<?,?>[]> STRUCTURE_TO_FEATURES
public static final Map<ConfiguredFeature<?,?>,FeatureConfig> FEATURE_TO_FEATURE_CONFIG
private final List<FlatChunkGeneratorLayer> layers
private Biome biome
private final BlockState[] layerBlocks
private boolean hasNoTerrain
private int groundHeight
public Biome getBiome()
public void setBiome(Biome biome)
public List<FlatChunkGeneratorLayer> getLayers()
public void updateLayerBlocks()
@Environment(value=CLIENT) @Nullable private static FlatChunkGeneratorLayer parseLayerString(String string, int startY)
@Environment(value=CLIENT) private static List<FlatChunkGeneratorLayer> parseLayersString(String string)
@Environment(value=CLIENT) public <T> com.mojang.datafixers.Dynamic<T> toDynamic(com.mojang.datafixers.types.DynamicOps<T> dynamicOps)
public static FlatChunkGeneratorConfig fromDynamic(com.mojang.datafixers.Dynamic<?> dynamic)
@Environment(value=CLIENT) public static FlatChunkGeneratorConfig fromString(String string)
@Environment(value=CLIENT) private void addStructure(String id)
@Environment(value=CLIENT) private void setStructureOption(String structure, String key, String value)
public static FlatChunkGeneratorConfig getDefaultConfig()
public boolean hasNoTerrain()
public BlockState[] getLayerBlocks()
public void removeLayerBlock(int layer)