yarn/mappings/net/minecraft/world/gen/chunk/ChunkGenerator.mapping

109 lines
5.8 KiB
Plaintext

CLASS net/minecraft/class_2794 net/minecraft/world/gen/chunk/ChunkGenerator
COMMENT In charge of shaping, adding biome specific surface blocks, and carving chunks,
COMMENT as well as populating the generated chunks with {@linkplain net.minecraft.world.gen.feature.Feature features} and {@linkplain net.minecraft.entity.Entity entities}.
COMMENT Biome placement starts here, however all vanilla and most modded chunk generators delegate this to a {@linkplain net.minecraft.world.biome.source.BiomeSource biome source}.
FIELD field_12761 populationSource Lnet/minecraft/class_1966;
COMMENT Used to control the population step without replacing the actual biome that comes from the original {@link #biomeSource}.
COMMENT
COMMENT <p>This is used by {@link FlatChunkGenerator} to overwrite biome properties like whether lakes generate, while preserving the original biome ID.
FIELD field_16567 structuresConfig Lnet/minecraft/class_5311;
FIELD field_24746 CODEC Lcom/mojang/serialization/Codec;
FIELD field_24747 biomeSource Lnet/minecraft/class_1966;
FIELD field_24748 worldSeed J
FIELD field_24749 strongholds Ljava/util/List;
METHOD <init> (Lnet/minecraft/class_1966;Lnet/minecraft/class_1966;Lnet/minecraft/class_5311;J)V
ARG 1 populationSource
ARG 2 biomeSource
ARG 3 structuresConfig
ARG 4 worldSeed
METHOD <init> (Lnet/minecraft/class_1966;Lnet/minecraft/class_5311;)V
ARG 1 biomeSource
ARG 2 structuresConfig
METHOD method_12088 populateNoise (Ljava/util/concurrent/Executor;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
COMMENT Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.
ARG 1 executor
ARG 2 accessor
ARG 3 chunk
METHOD method_12098 getBiomeSource ()Lnet/minecraft/class_1966;
METHOD method_12100 getSpawnHeight (Lnet/minecraft/class_5539;)I
METHOD method_12102 generateFeatures (Lnet/minecraft/class_3233;Lnet/minecraft/class_5138;)V
ARG 1 region
ARG 2 accessor
METHOD method_12103 locateStructure (Lnet/minecraft/class_3218;Lnet/minecraft/class_3195;Lnet/minecraft/class_2338;IZ)Lnet/minecraft/class_2338;
COMMENT Tries to find the closest structure of a given type near a given block.
COMMENT <p>
COMMENT New chunks will only be generated up to the {@link net.minecraft.world.chunk.ChunkStatus#STRUCTURE_STARTS} phase by this method.
COMMENT
COMMENT @return {@code null} if no structure could be found within the given search radius
ARG 1 world
ARG 2 feature
ARG 3 center
ARG 4 radius
COMMENT The search radius in chunks around the chunk the given block position is in. A radius of 0 will only search in the given chunk.
COMMENT This is ignored for strongholds.
ARG 5 skipExistingChunks
COMMENT whether only structures that are not referenced by generated chunks (chunks past the STRUCTURE_STARTS stage) are returned, excluding strongholds
METHOD method_12104 getWorldHeight ()I
METHOD method_12106 populateBiomes (Lnet/minecraft/class_2378;Lnet/minecraft/class_2791;)V
ARG 1 biomeRegistry
ARG 2 chunk
METHOD method_12107 populateEntities (Lnet/minecraft/class_3233;)V
ARG 1 region
METHOD method_12108 carve (JLnet/minecraft/class_4543;Lnet/minecraft/class_2791;Lnet/minecraft/class_2893$class_2894;)V
COMMENT Generates caves for the given chunk.
ARG 1 seed
ARG 3 access
ARG 4 chunk
ARG 5 carver
METHOD method_12109 getStructuresConfig ()Lnet/minecraft/class_5311;
METHOD method_12110 buildSurface (Lnet/minecraft/class_3233;Lnet/minecraft/class_2791;)V
COMMENT Places the surface blocks of the biomes after the noise has been generated.
ARG 1 region
ARG 2 chunk
METHOD method_12113 getEntitySpawnList (Lnet/minecraft/class_1959;Lnet/minecraft/class_5138;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6012;
ARG 1 biome
ARG 2 accessor
ARG 3 group
ARG 4 pos
METHOD method_16129 setStructureStarts (Lnet/minecraft/class_5455;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_3485;J)V
COMMENT Determines which structures should start in the given chunk and creates their starting points.
ARG 5 worldSeed
METHOD method_16130 addStructureReferences (Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
COMMENT Finds all structures that the given chunk intersects, and adds references to their starting chunks to it.
COMMENT A radius of 8 chunks around the given chunk will be searched for structure starts.
ARG 1 world
ARG 2 accessor
ARG 3 chunk
METHOD method_16397 getHeight (IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;)I
COMMENT Returns the raw noise height of a column for use in structure generation.
ARG 1 x
ARG 2 z
ARG 3 heightmap
ARG 4 world
METHOD method_16398 getSeaLevel ()I
METHOD method_18028 getHeightInGround (IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;)I
ARG 1 x
ARG 2 z
ARG 3 heightmap
ARG 4 world
METHOD method_20402 getHeightOnGround (IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;)I
ARG 1 x
ARG 2 z
ARG 3 heightmap
ARG 4 world
METHOD method_26261 getColumnSample (IILnet/minecraft/class_5539;)Lnet/minecraft/class_4966;
COMMENT Returns a sample of all the block states in a column for use in structure generation.
ARG 1 x
ARG 2 z
ARG 3 world
METHOD method_27997 withSeed (J)Lnet/minecraft/class_2794;
ARG 1 seed
METHOD method_28506 getCodec ()Lcom/mojang/serialization/Codec;
METHOD method_28507 isStrongholdStartingChunk (Lnet/minecraft/class_1923;)Z
ARG 1 pos
METHOD method_28508 setStructureStart (Lnet/minecraft/class_5312;Lnet/minecraft/class_5455;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_3485;JLnet/minecraft/class_1959;)V
ARG 4 chunk
ARG 6 worldSeed
METHOD method_28509 generateStrongholdPositions ()V
METHOD method_33730 getMinimumY ()I