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 cmn
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 Lcmn;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 i Lcmn;i:Lcht;
      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 j Lcmn;j:[Lcht;
      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 k Lcmn;k: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 l Lcmn;l: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 m Lcmn;m: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 n Lcmn;n: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 o Lcmn;o:I
      intermediary field_16578 Lnet/minecraft/class_3754;field_16578:I
      named noiseSizeZ Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;noiseSizeZ:I
    • random

      protected final WorldGenRandom random
      Mappings:
      Namespace Name Mixin selector
      official e Lcmn;e:Lcmv;
      intermediary field_16577 Lnet/minecraft/class_3754;field_16577:Lnet/minecraft/class_5819;
      named random Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;random:Lnet/minecraft/world/gen/WorldGenRandom;
    • surfaceDepthNoise

      private final NoiseSampler surfaceDepthNoise
      Mappings:
      Namespace Name Mixin selector
      official p Lcmn;p:Lczs;
      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;
    • defaultBlock

      protected final BlockState defaultBlock
      Mappings:
      Namespace Name Mixin selector
      official f Lcmn;f:Lcht;
      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 g Lcmn;g:Lcht;
      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 q Lcmn;q: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 h Lcmn;h: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 r Lcmn;r: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 s Lcmn;s:Lcmp;
      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;
  • Constructor Details

    • NoiseChunkGenerator

      public NoiseChunkGenerator​(BiomeSource biomeSource, long seed, Supplier<ChunkGeneratorSettings> settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcmn;<init>(Lbux;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> Lcmn;<init>(Lbux;Lbux;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 Lcjn;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 Lcjn;a(J)Lcjn;
      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 Lcmn;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 Lcmn;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 heightmapType, HeightLimitView world)
      Specified by:
      getHeight in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjn;a(IILcmm$a;Lbtx;)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)
      Specified by:
      getColumnSample in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjn;a(IILbtx;)Lbug;
      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 Lcmn;a(II[Lcht;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, int x, int y, int z, double noise)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmn;a(Lcmd;IIID)Lcht;
      intermediary method_33643 Lnet/minecraft/class_3754;method_33643(Lnet/minecraft/class_5817;IIID)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/gen/chunk/NoiseChunkGenerator;getBlockState(Lnet/minecraft/world/gen/StructureWeightSampler;IIID)Lnet/minecraft/block/BlockState;
    • buildSurface

      public void buildSurface​(ChunkRegion region, Chunk chunk)
      Specified by:
      buildSurface in class ChunkGenerator
      Mappings:
      Namespace Name Mixin selector
      official a Lcjn;a(Labb;Lcjl;)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 Lcmn;a(Lcjl;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 void populateNoise​(WorldAccess world, 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 Lcjn;a(Lbtw;Lbum;Lcjl;)V
      intermediary method_12088 Lnet/minecraft/class_2794;method_12088(Lnet/minecraft/class_1936;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
      named populateNoise Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
    • swapElements

      public <T> void swapElements​(T[] array)
      Mappings:
      Namespace Name Mixin selector
      official a Lcmn;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 Lcjn;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 Lcjn;f()I
      intermediary method_16398 Lnet/minecraft/class_2794;method_16398()I
      named getSeaLevel Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()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 Lcjn;a(Lbuu;Lbum;Lark;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 Lcjn;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