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
official cmt
intermediary net/minecraft/class_3754
named net/minecraft/world/gen/chunk/NoiseChunkGenerator
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<NoiseChunkGenerator> CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Lcmt;d:Lcom/mojang/serialization/Codec;
      intermediary field_24773 Lnet/minecraft/class_3754;field_24773:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;CODEC:Lcom/mojang/serialization/Codec;
    • AIR

      private static final BlockState AIR
      Mappings:
      Namespace Name Mixin selector
      official h Lcmt;h:Lchv;
      intermediary field_16648 Lnet/minecraft/class_3754;field_16648:Lnet/minecraft/class_2680;
      named AIR Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;AIR:Lnet/minecraft/block/BlockState;
    • EMPTY

      private static final BlockState[] EMPTY
      Mappings:
      Namespace Name Mixin selector
      official i Lcmt;i:[Lchv;
      intermediary field_28746 Lnet/minecraft/class_3754;field_28746:[Lnet/minecraft/class_2680;
      named EMPTY Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;EMPTY:[Lnet/minecraft/block/BlockState;
    • verticalNoiseResolution

      private final int verticalNoiseResolution
      Mappings:
      Namespace Name Mixin selector
      official j Lcmt;j:I
      intermediary field_16572 Lnet/minecraft/class_3754;field_16572:I
      named verticalNoiseResolution Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;verticalNoiseResolution:I
    • horizontalNoiseResolution

      private final int horizontalNoiseResolution
      Mappings:
      Namespace Name Mixin selector
      official k Lcmt;k:I
      intermediary field_16570 Lnet/minecraft/class_3754;field_16570:I
      named horizontalNoiseResolution Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;horizontalNoiseResolution:I
    • noiseSizeX

      private final int noiseSizeX
      Mappings:
      Namespace Name Mixin selector
      official l Lcmt;l:I
      intermediary field_16580 Lnet/minecraft/class_3754;field_16580:I
      named noiseSizeX Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeX:I
    • noiseSizeY

      private final int noiseSizeY
      Mappings:
      Namespace Name Mixin selector
      official m Lcmt;m:I
      intermediary field_28747 Lnet/minecraft/class_3754;field_28747:I
      named noiseSizeY Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeY:I
    • noiseSizeZ

      private final int noiseSizeZ
      Mappings:
      Namespace Name Mixin selector
      official n Lcmt;n:I
      intermediary field_16578 Lnet/minecraft/class_3754;field_16578:I
      named noiseSizeZ Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeZ:I
    • surfaceDepthNoise

      private final NoiseSampler surfaceDepthNoise
      Mappings:
      Namespace Name Mixin selector
      official o Lcmt;o:Ldaa;
      intermediary field_16571 Lnet/minecraft/class_3754;field_16571:Lnet/minecraft/class_3757;
      named surfaceDepthNoise Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;surfaceDepthNoise:Lnet/minecraft/util/math/noise/NoiseSampler;
    • field_28843

      private final DoublePerlinNoiseSampler field_28843
      Mappings:
      Namespace Name Mixin selector
      official p Lcmt;p:Lczw;
      intermediary field_28843 Lnet/minecraft/class_3754;field_28843:Lnet/minecraft/class_5216;
      named field_28843 Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;field_28843:Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
    • waterLevelNoise

      private final DoublePerlinNoiseSampler waterLevelNoise
      Mappings:
      Namespace Name Mixin selector
      official q Lcmt;q:Lczw;
      intermediary field_28844 Lnet/minecraft/class_3754;field_28844:Lnet/minecraft/class_5216;
      named waterLevelNoise Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;waterLevelNoise:Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
    • defaultBlock

      protected final BlockState defaultBlock
      Mappings:
      Namespace Name Mixin selector
      official e Lcmt;e:Lchv;
      intermediary field_16576 Lnet/minecraft/class_3754;field_16576:Lnet/minecraft/class_2680;
      named defaultBlock Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;defaultBlock:Lnet/minecraft/block/BlockState;
    • defaultFluid

      protected final BlockState defaultFluid
      Mappings:
      Namespace Name Mixin selector
      official f Lcmt;f:Lchv;
      intermediary field_16573 Lnet/minecraft/class_3754;field_16573:Lnet/minecraft/class_2680;
      named defaultFluid Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;defaultFluid:Lnet/minecraft/block/BlockState;
    • seed

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      official r Lcmt;r:J
      intermediary field_24778 Lnet/minecraft/class_3754;field_24778:J
      named seed Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;seed:J
    • settings

      protected final Supplier<ChunkGeneratorSettings> settings
      Mappings:
      Namespace Name Mixin selector
      official g Lcmt;g:Ljava/util/function/Supplier;
      intermediary field_24774 Lnet/minecraft/class_3754;field_24774:Ljava/util/function/Supplier;
      named settings Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;settings:Ljava/util/function/Supplier;
    • worldHeight

      private final int worldHeight
      Mappings:
      Namespace Name Mixin selector
      official s Lcmt;s:I
      intermediary field_24779 Lnet/minecraft/class_3754;field_24779:I
      named worldHeight Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;worldHeight:I
    • noiseColumnSampler

      private final NoiseColumnSampler noiseColumnSampler
      Mappings:
      Namespace Name Mixin selector
      official t Lcmt;t:Lcmv;
      intermediary field_28748 Lnet/minecraft/class_3754;field_28748:Lnet/minecraft/class_5818;
      named noiseColumnSampler Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseColumnSampler:Lnet/minecraft/world/gen/NoiseColumnSampler;
    • hasAquifers

      private final boolean hasAquifers
      Mappings:
      Namespace Name Mixin selector
      official u Lcmt;u:Z
      intermediary field_28845 Lnet/minecraft/class_3754;field_28845:Z
      named hasAquifers Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;hasAquifers:Z
    • blockInterpolator

      private final BlockInterpolator blockInterpolator
      Mappings:
      Namespace Name Mixin selector
      official v Lcmt;v:Lcmg;
      intermediary field_28913 Lnet/minecraft/class_3754;field_28913:Lnet/minecraft/class_5840;
      named blockInterpolator Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;blockInterpolator:Lnet/minecraft/world/gen/BlockInterpolator;
  • Constructor Details

    • NoiseChunkGenerator

      public NoiseChunkGenerator​(BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcmt;<init>(Lbuz;JLjava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_3754;<init>(Lnet/minecraft/class_1966;JLjava/util/function/Supplier;)V
      named <init> Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;JLjava/util/function/Supplier;)V
    • NoiseChunkGenerator

      private NoiseChunkGenerator​(BiomeSource populationSource, BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcmt;<init>(Lbuz;Lbuz;JLjava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_3754;<init>(Lnet/minecraft/class_1966;Lnet/minecraft/class_1966;JLjava/util/function/Supplier;)V
      named <init> Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/world/biome/source/BiomeSource;JLjava/util/function/Supplier;)V
  • Method Details

    • getCodec

      protected com.mojang.serialization.Codec<? extends ChunkGenerator> getCodec()
      Specified by:
      getCodec in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjp;a()Lcom/mojang/serialization/Codec;
      intermediary method_28506 Lnet/minecraft/class_2794;method_28506()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/world/gen/chunk/ChunkGenerator;getCodec()Lcom/mojang/serialization/Codec;
    • withSeed

      @Environment(CLIENT) public ChunkGenerator withSeed​(long seed)
      Specified by:
      withSeed in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjp;a(J)Lcjp;
      intermediary method_27997 Lnet/minecraft/class_2794;method_27997(J)Lnet/minecraft/class_2794;
      named withSeed Lnet/minecraft/world/gen/chunk/ChunkGenerator;withSeed(J)Lnet/minecraft/world/gen/chunk/ChunkGenerator;
    • matchesSettings

      public boolean matchesSettings​(long seed, RegistryKey<ChunkGeneratorSettings> settingsKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a(JLwa;)Z
      intermediary method_28548 Lnet/minecraft/class_3754;method_28548(JLnet/minecraft/class_5321;)Z
      named matchesSettings Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;matchesSettings(JLnet/minecraft/util/registry/RegistryKey;)Z
    • sampleNoiseColumn

      private double[] sampleNoiseColumn​(int x, int z, int minY, int noiseSizeY)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a(IIII)[D
      intermediary method_16406 Lnet/minecraft/class_3754;method_16406(IIII)[D
      named sampleNoiseColumn Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleNoiseColumn(IIII)[D
    • getHeight

      public int getHeight​(int x, int z, Heightmap.Type heightmap, HeightLimitView world)
      Returns the raw noise height of a column for use in structure generation.
      Specified by:
      getHeight in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjp;a(IILcms$a;Lbtz;)I
      intermediary method_16397 Lnet/minecraft/class_2794;method_16397(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;)I
      named getHeight Lnet/minecraft/world/gen/chunk/ChunkGenerator;getHeight(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;)I
    • getColumnSample

      public VerticalBlockSample getColumnSample​(int x, int z, HeightLimitView world)
      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
      official a Lcjp;a(IILbtz;)Lbui;
      intermediary method_26261 Lnet/minecraft/class_2794;method_26261(IILnet/minecraft/class_5539;)Lnet/minecraft/class_4966;
      named getColumnSample Lnet/minecraft/world/gen/chunk/ChunkGenerator;getColumnSample(IILnet/minecraft/world/HeightLimitView;)Lnet/minecraft/world/gen/chunk/VerticalBlockSample;
    • sampleHeightmap

      private OptionalInt sampleHeightmap​(int x, int z, @Nullable BlockState[] states, @Nullable Predicate<BlockState> predicate, int minY, int noiseSizeY)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a(II[Lchv;Ljava/util/function/Predicate;II)Ljava/util/OptionalInt;
      intermediary method_26263 Lnet/minecraft/class_3754;method_26263(II[Lnet/minecraft/class_2680;Ljava/util/function/Predicate;II)Ljava/util/OptionalInt;
      named sampleHeightmap Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;sampleHeightmap(II[Lnet/minecraft/block/BlockState;Ljava/util/function/Predicate;II)Ljava/util/OptionalInt;
    • getBlockState

      protected BlockState getBlockState​(StructureWeightSampler structures, @Nullable AquiferSampler aquiferSampler, BlockInterpolator blockInterpolator, int x, int y, int z, double noise)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a(Lcmh;Lcmf;Lcmg;IIID)Lchv;
      intermediary method_33643 Lnet/minecraft/class_3754;method_33643(Lnet/minecraft/class_5817;Lnet/minecraft/class_5832;Lnet/minecraft/class_5840;IIID)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getBlockState(Lnet/minecraft/world/gen/StructureWeightSampler;Lnet/minecraft/world/gen/AquiferSampler;Lnet/minecraft/world/gen/BlockInterpolator;IIID)Lnet/minecraft/block/BlockState;
    • buildSurface

      public void buildSurface​(ChunkRegion region, 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
      official a Lcjp;a(Labb;Lcjn;)V
      intermediary method_12110 Lnet/minecraft/class_2794;method_12110(Lnet/minecraft/class_3233;Lnet/minecraft/class_2791;)V
      named buildSurface Lnet/minecraft/world/gen/chunk/ChunkGenerator;buildSurface(Lnet/minecraft/world/ChunkRegion;Lnet/minecraft/world/chunk/Chunk;)V
    • buildBedrock

      private void buildBedrock​(Chunk chunk, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a(Lcjn;Ljava/util/Random;)V
      intermediary method_16412 Lnet/minecraft/class_3754;method_16412(Lnet/minecraft/class_2791;Ljava/util/Random;)V
      named buildBedrock Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;buildBedrock(Lnet/minecraft/world/chunk/Chunk;Ljava/util/Random;)V
    • populateNoise

      public CompletableFuture<Chunk> populateNoise​(Executor executor, StructureAccessor accessor, 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
      official a Lcjp;a(Ljava/util/concurrent/Executor;Lbuo;Lcjn;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_12088 Lnet/minecraft/class_2794;method_12088(Ljava/util/concurrent/Executor;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
      named populateNoise Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Ljava/util/concurrent/Executor;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
    • populateNoise

      private Chunk populateNoise​(StructureAccessor accessor, Chunk chunk, int minY, int noiseSizeY)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a(Lbuo;Lcjn;II)Lcjn;
      intermediary method_33754 Lnet/minecraft/class_3754;method_33754(Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;II)Lnet/minecraft/class_2791;
      named populateNoise Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;populateNoise(Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;II)Lnet/minecraft/world/chunk/Chunk;
    • swapElements

      public <T> void swapElements​(T[] array)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmt;a([Ljava/lang/Object;)V
      intermediary method_33644 Lnet/minecraft/class_3754;method_33644([Ljava/lang/Object;)V
      named swapElements Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;swapElements([Ljava/lang/Object;)V
    • getWorldHeight

      public int getWorldHeight()
      Overrides:
      getWorldHeight in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official e Lcjp;e()I
      intermediary method_12104 Lnet/minecraft/class_2794;method_12104()I
      named getWorldHeight Lnet/minecraft/world/gen/chunk/ChunkGenerator;getWorldHeight()I
    • getSeaLevel

      public int getSeaLevel()
      Overrides:
      getSeaLevel in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official f Lcjp;f()I
      intermediary method_16398 Lnet/minecraft/class_2794;method_16398()I
      named getSeaLevel Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
    • getMinimumY

      public int getMinimumY()
      Overrides:
      getMinimumY in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official g Lcjp;g()I
      intermediary method_33730 Lnet/minecraft/class_2794;method_33730()I
      named getMinimumY Lnet/minecraft/world/gen/chunk/ChunkGenerator;getMinimumY()I
    • getEntitySpawnList

      public List<SpawnSettings.SpawnEntry> getEntitySpawnList​(Biome biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos)
      Overrides:
      getEntitySpawnList in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjp;a(Lbuw;Lbuo;Larm;Lfx;)Ljava/util/List;
      intermediary method_12113 Lnet/minecraft/class_2794;method_12113(Lnet/minecraft/class_1959;Lnet/minecraft/class_5138;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;)Ljava/util/List;
      named getEntitySpawnList Lnet/minecraft/world/gen/chunk/ChunkGenerator;getEntitySpawnList(Lnet/minecraft/world/biome/Biome;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • populateEntities

      public void populateEntities​(ChunkRegion region)
      Overrides:
      populateEntities in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjp;a(Labb;)V
      intermediary method_12107 Lnet/minecraft/class_2794;method_12107(Lnet/minecraft/class_3233;)V
      named populateEntities Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateEntities(Lnet/minecraft/world/ChunkRegion;)V