Package net.minecraft.world.gen.chunk
Class NoiseChunkGenerator
java.lang.Object
net.minecraft.world.gen.chunk.ChunkGenerator
net.minecraft.world.gen.chunk.NoiseChunkGenerator
- Mappings:
Namespace Name named net/minecraft/world/gen/chunk/NoiseChunkGenerator
intermediary net/minecraft/class_3754
official eds
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BlockState
static final com.mojang.serialization.MapCodec
<NoiseChunkGenerator> private final Supplier
<AquiferSampler.FluidLevelSampler> private final RegistryEntry
<ChunkGeneratorSettings> Fields inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
biomeSource
-
Constructor Summary
ConstructorDescriptionNoiseChunkGenerator
(BiomeSource biomeSource, RegistryEntry<ChunkGeneratorSettings> settings) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) void
buildSurface
(Chunk chunk, HeightContext heightContext, NoiseConfig noiseConfig, StructureAccessor structureAccessor, BiomeAccess biomeAccess, Registry<Biome> biomeRegistry, Blender blender) void
buildSurface
(ChunkRegion region, StructureAccessor structures, NoiseConfig noiseConfig, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.void
carve
(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk) Generates caves for the given chunk.private ChunkNoiseSampler
createChunkNoiseSampler
(Chunk chunk, StructureAccessor world, Blender blender, NoiseConfig noiseConfig) private static AquiferSampler.FluidLevelSampler
private BlockState
getBlockState
(ChunkNoiseSampler chunkNoiseSampler, int x, int y, int z, BlockState state) protected com.mojang.serialization.MapCodec
<? extends ChunkGenerator> getCodec()
getColumnSample
(int x, int z, HeightLimitView world, NoiseConfig noiseConfig) Returns a sample of all the block states in a column for use in structure generation.int
getHeight
(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) Returns the raw noise height of a column for use in structure generation.int
int
int
boolean
matchesSettings
(RegistryKey<ChunkGeneratorSettings> settings) private void
populateBiomes
(Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) populateBiomes
(NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) void
populateEntities
(ChunkRegion region) populateNoise
(Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.private Chunk
populateNoise
(Blender blender, StructureAccessor structureAccessor, NoiseConfig noiseConfig, Chunk chunk, int minimumCellY, int cellHeight) private OptionalInt
sampleHeightmap
(HeightLimitView world, NoiseConfig noiseConfig, int x, int z, @Nullable MutableObject<VerticalBlockSample> columnSample, @Nullable Predicate<BlockState> stopPredicate) Methods inherited from class net.minecraft.world.gen.chunk.ChunkGenerator
addStructureReferences, createStructurePlacementCalculator, generateFeatures, getBiomeSource, getCodecKey, getEntitySpawnList, getGenerationSettings, getHeightInGround, getHeightOnGround, getSpawnHeight, initializeIndexedFeaturesList, locateStructure, setStructureStarts
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_24773
Lnet/minecraft/class_3754;field_24773:Lcom/mojang/serialization/MapCodec;
official c
Leds;c:Lcom/mojang/serialization/MapCodec;
-
AIR
- Mappings:
Namespace Name Mixin selector named AIR
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;AIR:Lnet/minecraft/block/BlockState;
intermediary field_16648
Lnet/minecraft/class_3754;field_16648:Lnet/minecraft/class_2680;
official d
Leds;d:Ldxu;
-
settings
- Mappings:
Namespace Name Mixin selector named settings
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;settings:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_24774
Lnet/minecraft/class_3754;field_24774:Lnet/minecraft/class_6880;
official e
Leds;e:Ljq;
-
fluidLevelSampler
- Mappings:
Namespace Name Mixin selector named fluidLevelSampler
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;fluidLevelSampler:Ljava/util/function/Supplier;
intermediary field_34591
Lnet/minecraft/class_3754;field_34591:Ljava/util/function/Supplier;
official f
Leds;f:Ljava/util/function/Supplier;
-
-
Constructor Details
-
NoiseChunkGenerator
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary <init>
Lnet/minecraft/class_3754;<init>(Lnet/minecraft/class_1966;Lnet/minecraft/class_6880;)V
official <init>
Leds;<init>(Ldin;Ljq;)V
-
-
Method Details
-
createFluidLevelSampler
private static AquiferSampler.FluidLevelSampler createFluidLevelSampler(ChunkGeneratorSettings settings) - Mappings:
Namespace Name Mixin selector named createFluidLevelSampler
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;createFluidLevelSampler(Lnet/minecraft/world/gen/chunk/ChunkGeneratorSettings;)Lnet/minecraft/world/gen/chunk/AquiferSampler$FluidLevelSampler;
intermediary method_45510
Lnet/minecraft/class_3754;method_45510(Lnet/minecraft/class_5284;)Lnet/minecraft/class_6350$class_6565;
official a
Leds;a(Ledu;)Ledb$a;
-
populateBiomes
public CompletableFuture<Chunk> populateBiomes(NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) - Overrides:
populateBiomes
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named populateBiomes
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateBiomes(Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
intermediary method_38275
Lnet/minecraft/class_2794;method_38275(Lnet/minecraft/class_7138;Lnet/minecraft/class_6748;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
official a
Ldzq;a(Leed;Leer;Ldid;Ldzp;)Ljava/util/concurrent/CompletableFuture;
-
populateBiomes
private void populateBiomes(Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) - Mappings:
Namespace Name Mixin selector named populateBiomes
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;populateBiomes(Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_38327
Lnet/minecraft/class_3754;method_38327(Lnet/minecraft/class_6748;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
official b
Leds;b(Leer;Leed;Ldid;Ldzp;)V
-
createChunkNoiseSampler
private ChunkNoiseSampler createChunkNoiseSampler(Chunk chunk, StructureAccessor world, Blender blender, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector named createChunkNoiseSampler
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;createChunkNoiseSampler(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/noise/NoiseConfig;)Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;
intermediary method_41537
Lnet/minecraft/class_3754;method_41537(Lnet/minecraft/class_2791;Lnet/minecraft/class_5138;Lnet/minecraft/class_6748;Lnet/minecraft/class_7138;)Lnet/minecraft/class_6568;
official a
Leds;a(Ldzp;Ldid;Leer;Leed;)Ledt;
-
getCodec
- Specified by:
getCodec
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_28506
Lnet/minecraft/class_2794;method_28506()Lcom/mojang/serialization/MapCodec;
official b
Ldzq;b()Lcom/mojang/serialization/MapCodec;
-
getSettings
- Mappings:
Namespace Name Mixin selector named getSettings
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getSettings()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_41541
Lnet/minecraft/class_3754;method_41541()Lnet/minecraft/class_6880;
official h
Leds;h()Ljq;
-
matchesSettings
- Mappings:
Namespace Name Mixin selector named matchesSettings
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;matchesSettings(Lnet/minecraft/registry/RegistryKey;)Z
intermediary method_28548
Lnet/minecraft/class_3754;method_28548(Lnet/minecraft/class_5321;)Z
official a
Leds;a(Laly;)Z
-
getHeight
public int getHeight(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) Returns the raw noise height of a column for use in structure generation.- Specified by:
getHeight
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getHeight(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;)I
intermediary method_16397
Lnet/minecraft/class_2794;method_16397(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
official a
Ldzq;a(IILedp$a;Ldhj;Leed;)I
-
getColumnSample
public VerticalBlockSample getColumnSample(int x, int z, HeightLimitView world, NoiseConfig noiseConfig) Returns a sample of all the block states in a column for use in structure generation.- Specified by:
getColumnSample
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named getColumnSample
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getColumnSample(IILnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;)Lnet/minecraft/world/gen/chunk/VerticalBlockSample;
intermediary method_26261
Lnet/minecraft/class_2794;method_26261(IILnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Lnet/minecraft/class_4966;
official a
Ldzq;a(IILdhj;Leed;)Ldht;
-
appendDebugHudText
- Specified by:
appendDebugHudText
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named appendDebugHudText
Lnet/minecraft/world/gen/chunk/ChunkGenerator;appendDebugHudText(Ljava/util/List;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_40450
Lnet/minecraft/class_2794;method_40450(Ljava/util/List;Lnet/minecraft/class_7138;Lnet/minecraft/class_2338;)V
official a
Ldzq;a(Ljava/util/List;Leed;Ljh;)V
-
sampleHeightmap
private OptionalInt sampleHeightmap(HeightLimitView world, NoiseConfig noiseConfig, int x, int z, @Nullable @Nullable MutableObject<VerticalBlockSample> columnSample, @Nullable @Nullable Predicate<BlockState> stopPredicate) - Mappings:
Namespace Name Mixin selector named sampleHeightmap
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleHeightmap(Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;IILorg/apache/commons/lang3/mutable/MutableObject;Ljava/util/function/Predicate;)Ljava/util/OptionalInt;
intermediary method_26263
Lnet/minecraft/class_3754;method_26263(Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;IILorg/apache/commons/lang3/mutable/MutableObject;Ljava/util/function/Predicate;)Ljava/util/OptionalInt;
official a
Leds;a(Ldhj;Leed;IILorg/apache/commons/lang3/mutable/MutableObject;Ljava/util/function/Predicate;)Ljava/util/OptionalInt;
-
buildSurface
public void buildSurface(ChunkRegion region, StructureAccessor structures, NoiseConfig noiseConfig, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.- Specified by:
buildSurface
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named buildSurface
Lnet/minecraft/world/gen/chunk/ChunkGenerator;buildSurface(Lnet/minecraft/world/ChunkRegion;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_12110
Lnet/minecraft/class_2794;method_12110(Lnet/minecraft/class_3233;Lnet/minecraft/class_5138;Lnet/minecraft/class_7138;Lnet/minecraft/class_2791;)V
official a
Ldzq;a(Lasp;Ldid;Leed;Ldzp;)V
-
buildSurface
public void buildSurface(Chunk chunk, HeightContext heightContext, NoiseConfig noiseConfig, StructureAccessor structureAccessor, BiomeAccess biomeAccess, Registry<Biome> biomeRegistry, Blender blender) - Mappings:
Namespace Name Mixin selector named buildSurface
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;buildSurface(Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/HeightContext;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/biome/source/BiomeAccess;Lnet/minecraft/registry/Registry;Lnet/minecraft/world/gen/chunk/Blender;)V
intermediary method_41538
Lnet/minecraft/class_3754;method_41538(Lnet/minecraft/class_2791;Lnet/minecraft/class_5868;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_4543;Lnet/minecraft/class_2378;Lnet/minecraft/class_6748;)V
official a
Leds;a(Ldzp;Leem;Leed;Ldid;Ldil;Lkd;Leer;)V
-
carve
public void carve(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk) Generates caves for the given chunk.- Specified by:
carve
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named carve
Lnet/minecraft/world/gen/chunk/ChunkGenerator;carve(Lnet/minecraft/world/ChunkRegion;JLnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/biome/source/BiomeAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_12108
Lnet/minecraft/class_2794;method_12108(Lnet/minecraft/class_3233;JLnet/minecraft/class_7138;Lnet/minecraft/class_4543;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
official a
Ldzq;a(Lasp;JLeed;Ldil;Ldid;Ldzp;)V
-
populateNoise
public CompletableFuture<Chunk> populateNoise(Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.- Specified by:
populateNoise
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named populateNoise
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
intermediary method_12088
Lnet/minecraft/class_2794;method_12088(Lnet/minecraft/class_6748;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
official a
Ldzq;a(Leer;Leed;Ldid;Ldzp;)Ljava/util/concurrent/CompletableFuture;
-
populateNoise
private Chunk populateNoise(Blender blender, StructureAccessor structureAccessor, NoiseConfig noiseConfig, Chunk chunk, int minimumCellY, int cellHeight) - Mappings:
Namespace Name Mixin selector named populateNoise
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;populateNoise(Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/chunk/Chunk;II)Lnet/minecraft/world/chunk/Chunk;
intermediary method_33754
Lnet/minecraft/class_3754;method_33754(Lnet/minecraft/class_6748;Lnet/minecraft/class_5138;Lnet/minecraft/class_7138;Lnet/minecraft/class_2791;II)Lnet/minecraft/class_2791;
official a
Leds;a(Leer;Ldid;Leed;Ldzp;II)Ldzp;
-
getBlockState
private BlockState getBlockState(ChunkNoiseSampler chunkNoiseSampler, int x, int y, int z, BlockState state) - Mappings:
Namespace Name Mixin selector named getBlockState
Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getBlockState(Lnet/minecraft/world/gen/chunk/ChunkNoiseSampler;IIILnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
intermediary method_38323
Lnet/minecraft/class_3754;method_38323(Lnet/minecraft/class_6568;IIILnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
official a
Leds;a(Ledt;IIILdxu;)Ldxu;
-
getWorldHeight
public int getWorldHeight()- Specified by:
getWorldHeight
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named getWorldHeight
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getWorldHeight()I
intermediary method_12104
Lnet/minecraft/class_2794;method_12104()I
official e
Ldzq;e()I
-
getSeaLevel
public int getSeaLevel()- Specified by:
getSeaLevel
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named getSeaLevel
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
intermediary method_16398
Lnet/minecraft/class_2794;method_16398()I
official f
Ldzq;f()I
-
getMinimumY
public int getMinimumY()- Specified by:
getMinimumY
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named getMinimumY
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getMinimumY()I
intermediary method_33730
Lnet/minecraft/class_2794;method_33730()I
official g
Ldzq;g()I
-
populateEntities
- Specified by:
populateEntities
in classChunkGenerator
- Mappings:
Namespace Name Mixin selector named populateEntities
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateEntities(Lnet/minecraft/world/ChunkRegion;)V
intermediary method_12107
Lnet/minecraft/class_2794;method_12107(Lnet/minecraft/class_3233;)V
official a
Ldzq;a(Lasp;)V
-