Class NoiseChunkGenerator

java.lang.Object
net.minecraft.world.gen.chunk.ChunkGenerator
net.minecraft.world.gen.chunk.NoiseChunkGenerator

public final class NoiseChunkGenerator extends ChunkGenerator
Mappings:
Namespace Name
named net/minecraft/world/gen/chunk/NoiseChunkGenerator
intermediary net/minecraft/class_3754
official dxz
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<NoiseChunkGenerator> 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 Ldxz;c:Lcom/mojang/serialization/MapCodec;
    • AIR

      private static final BlockState 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 Ldxz;d:Ldse;
    • settings

      private final RegistryEntry<ChunkGeneratorSettings> 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 Ldxz;e:Lji;
    • fluidLevelSampler

      private final Supplier<AquiferSampler.FluidLevelSampler> 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 Ldxz;f:Ljava/util/function/Supplier;
  • Constructor Details

    • NoiseChunkGenerator

      public NoiseChunkGenerator(BiomeSource biomeSource, RegistryEntry<ChunkGeneratorSettings> settings)
      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> Ldxz;<init>(Lddd;Lji;)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 Ldxz;a(Ldyb;)Ldxi$a;
    • populateBiomes

      public CompletableFuture<Chunk> populateBiomes(Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk)
      Overrides:
      populateBiomes in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      named populateBiomes Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateBiomes(Ljava/util/concurrent/Executor;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(Ljava/util/concurrent/Executor;Lnet/minecraft/class_7138;Lnet/minecraft/class_6748;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
      official a Ldub;a(Ljava/util/concurrent/Executor;Ldyk;Ldyy;Ldct;Ldua;)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 a Ldxz;a(Ldyy;Ldyk;Ldct;Ldua;)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 Ldxz;a(Ldua;Ldct;Ldyy;Ldyk;)Ldya;
    • getCodec

      protected com.mojang.serialization.MapCodec<? extends ChunkGenerator> getCodec()
      Specified by:
      getCodec in class ChunkGenerator
      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 Ldub;b()Lcom/mojang/serialization/MapCodec;
    • getSettings

      public RegistryEntry<ChunkGeneratorSettings> 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 Ldxz;h()Lji;
    • matchesSettings

      public boolean matchesSettings(RegistryKey<ChunkGeneratorSettings> settings)
      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 Ldxz;a(Lale;)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 class ChunkGenerator
      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 Ldub;a(IILdxw$a;Ldcc;Ldyk;)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 class ChunkGenerator
      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 Ldub;a(IILdcc;Ldyk;)Ldcm;
    • getDebugHudText

      public void getDebugHudText(List<String> text, NoiseConfig noiseConfig, BlockPos pos)
      Specified by:
      getDebugHudText in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      named getDebugHudText Lnet/minecraft/world/gen/chunk/ChunkGenerator;getDebugHudText(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 Ldub;a(Ljava/util/List;Ldyk;Liz;)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 Ldxz;a(Ldcc;Ldyk;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 class ChunkGenerator
      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 Ldub;a(Larm;Ldct;Ldyk;Ldua;)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 Ldxz;a(Ldua;Ldyt;Ldyk;Ldct;Lddb;Ljv;Ldyy;)V
    • carve

      public void carve(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carverStep)
      Generates caves for the given chunk.
      Specified by:
      carve in class ChunkGenerator
      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;Lnet/minecraft/world/gen/GenerationStep$Carver;)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;Lnet/minecraft/class_2893$class_2894;)V
      official a Ldub;a(Larm;JLdyk;Lddb;Ldct;Ldua;Ldxs$a;)V
    • populateNoise

      public CompletableFuture<Chunk> populateNoise(Executor executor, 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 class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      named populateNoise Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Ljava/util/concurrent/Executor;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(Ljava/util/concurrent/Executor;Lnet/minecraft/class_6748;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
      official a Ldub;a(Ljava/util/concurrent/Executor;Ldyy;Ldyk;Ldct;Ldua;)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 Ldxz;a(Ldyy;Ldct;Ldyk;Ldua;II)Ldua;
    • 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 Ldxz;a(Ldya;IIILdse;)Ldse;
    • getWorldHeight

      public int getWorldHeight()
      Specified by:
      getWorldHeight in class ChunkGenerator
      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 Ldub;e()I
    • getSeaLevel

      public int getSeaLevel()
      Specified by:
      getSeaLevel in class ChunkGenerator
      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 Ldub;f()I
    • getMinimumY

      public int getMinimumY()
      Specified by:
      getMinimumY in class ChunkGenerator
      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 Ldub;g()I
    • populateEntities

      public void populateEntities(ChunkRegion region)
      Specified by:
      populateEntities in class ChunkGenerator
      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 Ldub;a(Larm;)V