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 cus
intermediary net/minecraft/class_3232
named net/minecraft/world/gen/chunk/FlatChunkGeneratorConfig
-
Field Summary
Fields Modifier and Type Field Description private Supplier<Biome>
biome
private Registry<Biome>
biomeRegistry
static com.mojang.serialization.Codec<FlatChunkGeneratorConfig>
CODEC
private boolean
hasFeatures
private boolean
hasLakes
private boolean
hasNoTerrain
private BlockState[]
layerBlocks
private List<FlatChunkGeneratorLayer>
layers
private static Logger
LOGGER
private static Map<StructureFeature<?>,ConfiguredStructureFeature<?,?>>
STRUCTURE_TO_FEATURES
private StructuresConfig
structuresConfig
-
Constructor Summary
Constructors Modifier Constructor Description private
FlatChunkGeneratorConfig(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 Biome
createBiome()
void
enableFeatures()
void
enableLakes()
Biome
getBiome()
int
getBottomY()
Returns the bottom Y level, or height, inclusive, of this view.static FlatChunkGeneratorConfig
getDefaultConfig(Registry<Biome> biomeRegistry)
int
getHeight()
BlockState[]
getLayerBlocks()
List<FlatChunkGeneratorLayer>
getLayers()
StructuresConfig
getStructuresConfig()
FlatChunkGeneratorConfig
method_29965(List<FlatChunkGeneratorLayer> list, StructuresConfig structuresConfig)
int
method_31926(int int2)
private static com.mojang.serialization.DataResult<FlatChunkGeneratorConfig>
method_33067(FlatChunkGeneratorConfig flatChunkGeneratorConfig)
void
setBiome(Supplier<Biome> biome)
void
updateLayerBlocks()
FlatChunkGeneratorConfig
withStructuresConfig(StructuresConfig structuresConfig)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 b
Lcus;b:Lorg/apache/logging/log4j/Logger;
intermediary field_14064
Lnet/minecraft/class_3232;field_14064:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;LOGGER:Lorg/apache/logging/log4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcus;a:Lcom/mojang/serialization/Codec;
intermediary field_24975
Lnet/minecraft/class_3232;field_24975:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/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 c
Lcus;c:Ljava/util/Map;
intermediary field_14073
Lnet/minecraft/class_3232;field_14073:Ljava/util/Map;
named STRUCTURE_TO_FEATURES
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;STRUCTURE_TO_FEATURES:Ljava/util/Map;
-
biomeRegistry
- Mappings:
Namespace Name Mixin selector official d
Lcus;d:Lgn;
intermediary field_26748
Lnet/minecraft/class_3232;field_26748:Lnet/minecraft/class_2378;
named biomeRegistry
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;biomeRegistry:Lnet/minecraft/util/registry/Registry;
-
structuresConfig
- Mappings:
Namespace Name Mixin selector official e
Lcus;e:Lcmx;
intermediary field_24560
Lnet/minecraft/class_3232;field_24560:Lnet/minecraft/class_5311;
named structuresConfig
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;structuresConfig:Lnet/minecraft/world/gen/chunk/StructuresConfig;
-
layers
- Mappings:
Namespace Name Mixin selector official f
Lcus;f:Ljava/util/List;
intermediary field_14072
Lnet/minecraft/class_3232;field_14072:Ljava/util/List;
named layers
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;layers:Ljava/util/List;
-
biome
- Mappings:
Namespace Name Mixin selector official g
Lcus;g:Ljava/util/function/Supplier;
intermediary field_14081
Lnet/minecraft/class_3232;field_14081:Ljava/util/function/Supplier;
named biome
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;biome:Ljava/util/function/Supplier;
-
layerBlocks
- Mappings:
Namespace Name Mixin selector official h
Lcus;h:[Lcht;
intermediary field_14082
Lnet/minecraft/class_3232;field_14082:[Lnet/minecraft/class_2680;
named layerBlocks
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;layerBlocks:[Lnet/minecraft/block/BlockState;
-
hasNoTerrain
private boolean hasNoTerrain- Mappings:
Namespace Name Mixin selector official i
Lcus;i:Z
intermediary field_14077
Lnet/minecraft/class_3232;field_14077:Z
named hasNoTerrain
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;hasNoTerrain:Z
-
hasFeatures
private boolean hasFeatures- Mappings:
Namespace Name Mixin selector official j
Lcus;j:Z
intermediary field_24976
Lnet/minecraft/class_3232;field_24976:Z
named hasFeatures
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;hasFeatures:Z
-
hasLakes
private boolean hasLakes- Mappings:
Namespace Name Mixin selector official k
Lcus;k:Z
intermediary field_24977
Lnet/minecraft/class_3232;field_24977:Z
named hasLakes
Lnet/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;)V
intermediary <init>
Lnet/minecraft/class_3232;<init>(Lnet/minecraft/class_2378;Lnet/minecraft/class_5311;Ljava/util/List;ZZLjava/util/Optional;)V
named <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;)V
intermediary <init>
Lnet/minecraft/class_3232;<init>(Lnet/minecraft/class_5311;Lnet/minecraft/class_2378;)V
named <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 a
Lcus;a(Lcus;)Lcom/mojang/serialization/DataResult;
intermediary method_33067
Lnet/minecraft/class_3232;method_33067(Lnet/minecraft/class_3232;)Lcom/mojang/serialization/DataResult;
named method_33067
Lnet/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 a
Lcus;a(Lcmx;)Lcus;
intermediary method_28912
Lnet/minecraft/class_3232;method_28912(Lnet/minecraft/class_5311;)Lnet/minecraft/class_3232;
named withStructuresConfig
Lnet/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 a
Lcus;a(Ljava/util/List;Lcmx;)Lcus;
intermediary method_29965
Lnet/minecraft/class_3232;method_29965(Ljava/util/List;Lnet/minecraft/class_5311;)Lnet/minecraft/class_3232;
named method_29965
Lnet/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 a
Lcus;a()V
intermediary method_28911
Lnet/minecraft/class_3232;method_28911()V
named enableFeatures
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;enableFeatures()V
-
enableLakes
public void enableLakes()- Mappings:
Namespace Name Mixin selector official b
Lcus;b()V
intermediary method_28916
Lnet/minecraft/class_3232;method_28916()V
named enableLakes
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;enableLakes()V
-
createBiome
- Mappings:
Namespace Name Mixin selector official c
Lcus;c()Lbuu;
intermediary method_28917
Lnet/minecraft/class_3232;method_28917()Lnet/minecraft/class_1959;
named createBiome
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;createBiome()Lnet/minecraft/world/biome/Biome;
-
getStructuresConfig
- Mappings:
Namespace Name Mixin selector official d
Lcus;d()Lcmx;
intermediary method_28051
Lnet/minecraft/class_3232;method_28051()Lnet/minecraft/class_5311;
named getStructuresConfig
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getStructuresConfig()Lnet/minecraft/world/gen/chunk/StructuresConfig;
-
getBiome
- Mappings:
Namespace Name Mixin selector official e
Lcus;e()Lbuu;
intermediary method_14326
Lnet/minecraft/class_3232;method_14326()Lnet/minecraft/class_1959;
named getBiome
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getBiome()Lnet/minecraft/world/biome/Biome;
-
setBiome
- Mappings:
Namespace Name Mixin selector official a
Lcus;a(Ljava/util/function/Supplier;)V
intermediary method_14325
Lnet/minecraft/class_3232;method_14325(Ljava/util/function/Supplier;)V
named setBiome
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;setBiome(Ljava/util/function/Supplier;)V
-
getLayers
- Mappings:
Namespace Name Mixin selector official f
Lcus;f()Ljava/util/List;
intermediary method_14327
Lnet/minecraft/class_3232;method_14327()Ljava/util/List;
named getLayers
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getLayers()Ljava/util/List;
-
getLayerBlocks
- Mappings:
Namespace Name Mixin selector official g
Lcus;g()[Lcht;
intermediary method_14312
Lnet/minecraft/class_3232;method_14312()[Lnet/minecraft/class_2680;
named getLayerBlocks
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;getLayerBlocks()[Lnet/minecraft/block/BlockState;
-
updateLayerBlocks
public void updateLayerBlocks()- Mappings:
Namespace Name Mixin selector official h
Lcus;h()V
intermediary method_14330
Lnet/minecraft/class_3232;method_14330()V
named updateLayerBlocks
Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;updateLayerBlocks()V
-
getDefaultConfig
- Mappings:
Namespace Name Mixin selector official a
Lcus;a(Lgn;)Lcus;
intermediary method_14309
Lnet/minecraft/class_3232;method_14309(Lnet/minecraft/class_2378;)Lnet/minecraft/class_3232;
named getDefaultConfig
Lnet/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 a
Lcus;a(I)I
intermediary method_31926
Lnet/minecraft/class_3232;method_31926(I)I
named method_31926
Lnet/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:
getBottomY
in interfaceHeightLimitView
- See Also:
HeightLimitView.getTopY()
,HeightLimitView.getHeight()
- Mappings:
Namespace Name Mixin selector official w_
Lbtx;w_()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
named getBottomY
Lnet/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:
getHeight
in interfaceHeightLimitView
- Returns:
- the difference in the minimum and maximum height
- See Also:
HeightLimitView.getBottomY()
,HeightLimitView.getTopY()
- Mappings:
Namespace Name Mixin selector official m
Lbtx;m()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
-