Package net.minecraft.world.gen.chunk
Class FlatChunkGeneratorConfig
java.lang.Object
net.minecraft.world.gen.chunk.FlatChunkGeneratorConfig
- All Implemented Interfaces:
HeightLimitView
public class FlatChunkGeneratorConfig extends Object implements HeightLimitView
- Mappings:
Namespace Name official cusintermediary net/minecraft/class_3232named net/minecraft/world/gen/chunk/FlatChunkGeneratorConfig
-
Field Summary
Fields Modifier and Type Field Description private Supplier<Biome>biomeprivate Registry<Biome>biomeRegistrystatic com.mojang.serialization.Codec<FlatChunkGeneratorConfig>CODECprivate booleanhasFeaturesprivate booleanhasLakesprivate booleanhasNoTerrainprivate BlockState[]layerBlocksprivate List<FlatChunkGeneratorLayer>layersprivate static LoggerLOGGERprivate static Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>>STRUCTURE_TO_FEATURESprivate StructuresConfigstructuresConfig -
Constructor Summary
Constructors Modifier Constructor Description privateFlatChunkGeneratorConfig(Registry<Biome> biomeRegistry, StructuresConfig structuresConfig, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<Supplier<Biome>> biome)FlatChunkGeneratorConfig(StructuresConfig structuresConfig, Registry<Biome> biomeRegistry) -
Method Summary
Modifier and Type Method Description BiomecreateBiome()voidenableFeatures()voidenableLakes()BiomegetBiome()intgetBottomY()Returns the bottom Y level, or height, inclusive, of this view.static FlatChunkGeneratorConfiggetDefaultConfig(Registry<Biome> biomeRegistry)intgetHeight()BlockState[]getLayerBlocks()List<FlatChunkGeneratorLayer>getLayers()StructuresConfiggetStructuresConfig()FlatChunkGeneratorConfigmethod_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig)intmethod_31926(int int2)private static com.mojang.serialization.DataResult<FlatChunkGeneratorConfig>method_33067(FlatChunkGeneratorConfig flatChunkGeneratorConfig)voidsetBiome(Supplier<Biome> biome)voidupdateLayerBlocks()FlatChunkGeneratorConfigwithStructuresConfig(StructuresConfig structuresConfig)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLcus;b:Lorg/apache/logging/log4j/Logger;intermediary field_14064Lnet/minecraft/class_3232;field_14064:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;LOGGER:Lorg/apache/logging/log4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLcus;a:Lcom/mojang/serialization/Codec;intermediary field_24975Lnet/minecraft/class_3232;field_24975:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;CODEC:Lcom/mojang/serialization/Codec;
-
STRUCTURE_TO_FEATURES
private static final Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>> STRUCTURE_TO_FEATURES- Mappings:
Namespace Name Mixin selector official cLcus;c:Ljava/util/Map;intermediary field_14073Lnet/minecraft/class_3232;field_14073:Ljava/util/Map;named STRUCTURE_TO_FEATURESLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;STRUCTURE_TO_FEATURES:Ljava/util/Map;
-
biomeRegistry
- Mappings:
Namespace Name Mixin selector official dLcus;d:Lgn;intermediary field_26748Lnet/minecraft/class_3232;field_26748:Lnet/minecraft/class_2378;named biomeRegistryLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;biomeRegistry:Lnet/minecraft/util/registry/Registry;
-
structuresConfig
- Mappings:
Namespace Name Mixin selector official eLcus;e:Lcmx;intermediary field_24560Lnet/minecraft/class_3232;field_24560:Lnet/minecraft/class_5311;named structuresConfigLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;structuresConfig:Lnet/minecraft/world/gen/chunk/StructuresConfig;
-
layers
- Mappings:
Namespace Name Mixin selector official fLcus;f:Ljava/util/List;intermediary field_14072Lnet/minecraft/class_3232;field_14072:Ljava/util/List;named layersLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;layers:Ljava/util/List;
-
biome
- Mappings:
Namespace Name Mixin selector official gLcus;g:Ljava/util/function/Supplier;intermediary field_14081Lnet/minecraft/class_3232;field_14081:Ljava/util/function/Supplier;named biomeLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;biome:Ljava/util/function/Supplier;
-
layerBlocks
- Mappings:
Namespace Name Mixin selector official hLcus;h:[Lcht;intermediary field_14082Lnet/minecraft/class_3232;field_14082:[Lnet/minecraft/class_2680;named layerBlocksLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;layerBlocks:[Lnet/minecraft/block/BlockState;
-
hasNoTerrain
private boolean hasNoTerrain- Mappings:
Namespace Name Mixin selector official iLcus;i:Zintermediary field_14077Lnet/minecraft/class_3232;field_14077:Znamed hasNoTerrainLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;hasNoTerrain:Z
-
hasFeatures
private boolean hasFeatures- Mappings:
Namespace Name Mixin selector official jLcus;j:Zintermediary field_24976Lnet/minecraft/class_3232;field_24976:Znamed hasFeaturesLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;hasFeatures:Z
-
hasLakes
private boolean hasLakes- Mappings:
Namespace Name Mixin selector official kLcus;k:Zintermediary field_24977Lnet/minecraft/class_3232;field_24977:Znamed hasLakesLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;hasLakes:Z
-
-
Constructor Details
-
FlatChunkGeneratorConfig
private FlatChunkGeneratorConfig(Registry<Biome> biomeRegistry, StructuresConfig structuresConfig, List<FlatChunkGeneratorLayer> layers, boolean hasLakes, boolean hasFeatures, Optional<Supplier<Biome>> biome)- Mappings:
Namespace Name Mixin selector official <init>Lcus;<init>(Lgn;Lcmx;Ljava/util/List;ZZLjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_3232;<init>(Lnet/minecraft/class_2378;Lnet/minecraft/class_5311;Ljava/util/List;ZZLjava/util/Optional;)Vnamed <init>Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;<init>(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/world/gen/chunk/StructuresConfig;Ljava/util/List;ZZLjava/util/Optional;)V
-
FlatChunkGeneratorConfig
- Mappings:
Namespace Name Mixin selector official <init>Lcus;<init>(Lcmx;Lgn;)Vintermediary <init>Lnet/minecraft/class_3232;<init>(Lnet/minecraft/class_5311;Lnet/minecraft/class_2378;)Vnamed <init>Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;<init>(Lnet/minecraft/world/gen/chunk/StructuresConfig;Lnet/minecraft/util/registry/Registry;)V
-
-
Method Details
-
method_33067
private static com.mojang.serialization.DataResult<FlatChunkGeneratorConfig> method_33067(FlatChunkGeneratorConfig flatChunkGeneratorConfig)- Mappings:
Namespace Name Mixin selector official aLcus;a(Lcus;)Lcom/mojang/serialization/DataResult;intermediary method_33067Lnet/minecraft/class_3232;method_33067(Lnet/minecraft/class_3232;)Lcom/mojang/serialization/DataResult;named method_33067Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;method_33067(Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lcom/mojang/serialization/DataResult;
-
withStructuresConfig
@Environment(CLIENT) public FlatChunkGeneratorConfig withStructuresConfig(StructuresConfig structuresConfig)- Mappings:
Namespace Name Mixin selector official aLcus;a(Lcmx;)Lcus;intermediary method_28912Lnet/minecraft/class_3232;method_28912(Lnet/minecraft/class_5311;)Lnet/minecraft/class_3232;named withStructuresConfigLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;withStructuresConfig(Lnet/minecraft/world/gen/chunk/StructuresConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
method_29965
@Environment(CLIENT) public FlatChunkGeneratorConfig method_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig)- Mappings:
Namespace Name Mixin selector official aLcus;a(Ljava/util/List;Lcmx;)Lcus;intermediary method_29965Lnet/minecraft/class_3232;method_29965(Ljava/util/List;Lnet/minecraft/class_5311;)Lnet/minecraft/class_3232;named method_29965Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;method_29965(Ljava/util/List;Lnet/minecraft/world/gen/chunk/StructuresConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
enableFeatures
public void enableFeatures()- Mappings:
Namespace Name Mixin selector official aLcus;a()Vintermediary method_28911Lnet/minecraft/class_3232;method_28911()Vnamed enableFeaturesLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;enableFeatures()V
-
enableLakes
public void enableLakes()- Mappings:
Namespace Name Mixin selector official bLcus;b()Vintermediary method_28916Lnet/minecraft/class_3232;method_28916()Vnamed enableLakesLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;enableLakes()V
-
createBiome
- Mappings:
Namespace Name Mixin selector official cLcus;c()Lbuu;intermediary method_28917Lnet/minecraft/class_3232;method_28917()Lnet/minecraft/class_1959;named createBiomeLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;createBiome()Lnet/minecraft/world/biome/Biome;
-
getStructuresConfig
- Mappings:
Namespace Name Mixin selector official dLcus;d()Lcmx;intermediary method_28051Lnet/minecraft/class_3232;method_28051()Lnet/minecraft/class_5311;named getStructuresConfigLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getStructuresConfig()Lnet/minecraft/world/gen/chunk/StructuresConfig;
-
getBiome
- Mappings:
Namespace Name Mixin selector official eLcus;e()Lbuu;intermediary method_14326Lnet/minecraft/class_3232;method_14326()Lnet/minecraft/class_1959;named getBiomeLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getBiome()Lnet/minecraft/world/biome/Biome;
-
setBiome
- Mappings:
Namespace Name Mixin selector official aLcus;a(Ljava/util/function/Supplier;)Vintermediary method_14325Lnet/minecraft/class_3232;method_14325(Ljava/util/function/Supplier;)Vnamed setBiomeLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;setBiome(Ljava/util/function/Supplier;)V
-
getLayers
- Mappings:
Namespace Name Mixin selector official fLcus;f()Ljava/util/List;intermediary method_14327Lnet/minecraft/class_3232;method_14327()Ljava/util/List;named getLayersLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getLayers()Ljava/util/List;
-
getLayerBlocks
- Mappings:
Namespace Name Mixin selector official gLcus;g()[Lcht;intermediary method_14312Lnet/minecraft/class_3232;method_14312()[Lnet/minecraft/class_2680;named getLayerBlocksLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getLayerBlocks()[Lnet/minecraft/block/BlockState;
-
updateLayerBlocks
public void updateLayerBlocks()- Mappings:
Namespace Name Mixin selector official hLcus;h()Vintermediary method_14330Lnet/minecraft/class_3232;method_14330()Vnamed updateLayerBlocksLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;updateLayerBlocks()V
-
getDefaultConfig
- Mappings:
Namespace Name Mixin selector official aLcus;a(Lgn;)Lcus;intermediary method_14309Lnet/minecraft/class_3232;method_14309(Lnet/minecraft/class_2378;)Lnet/minecraft/class_3232;named getDefaultConfigLnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getDefaultConfig(Lnet/minecraft/util/registry/Registry;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
method_31926
public int method_31926(int int2)- Mappings:
Namespace Name Mixin selector official aLcus;a(I)Iintermediary method_31926Lnet/minecraft/class_3232;method_31926(I)Inamed method_31926Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;method_31926(I)I
-
getBottomY
public int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomYin interfaceHeightLimitView- See Also:
HeightLimitView.getTopY(),HeightLimitView.getHeight()- Mappings:
Namespace Name Mixin selector official w_Lbtx;w_()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Inamed getBottomYLnet/minecraft/world/HeightLimitView;getBottomY()I
-
getHeight
public int getHeight()Returns the difference in the minimum and maximum height.This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.
- Specified by:
getHeightin interfaceHeightLimitView- Returns:
- the difference in the minimum and maximum height
- See Also:
HeightLimitView.getBottomY(),HeightLimitView.getTopY()- Mappings:
Namespace Name Mixin selector official mLbtx;m()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getHeightLnet/minecraft/world/HeightLimitView;getHeight()I
-