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

133 lines
7.0 KiB
Plaintext
Raw Normal View History

2019-06-28 17:55:20 -04:00
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
2021-10-27 13:08:35 -04:00
METHOD method_12088 populateNoise (Ljava/util/concurrent/Executor;Lnet/minecraft/class_6748;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 3 structureAccessor
ARG 4 chunk
2019-06-28 17:55:20 -04:00
METHOD method_12098 getBiomeSource ()Lnet/minecraft/class_1966;
2021-03-17 14:44:18 -04:00
METHOD method_12100 getSpawnHeight (Lnet/minecraft/class_5539;)I
2021-04-16 10:19:52 -04:00
ARG 1 world
2021-11-03 14:39:11 -04:00
METHOD method_12102 generateFeatures (Lnet/minecraft/class_5281;Lnet/minecraft/class_2791;Lnet/minecraft/class_5138;)V
ARG 1 world
ARG 2 chunk
ARG 3 structureAccessor
2020-05-20 12:12:58 -04:00
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 <p>
COMMENT The radius is ignored for strongholds.
COMMENT
COMMENT @return {@code null} if no structure could be found within the given search radius
ARG 1 world
ARG 2 structureFeature
2019-01-30 05:53:59 -05:00
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
2019-01-30 05:53:59 -05:00
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
2019-06-28 17:55:20 -04:00
METHOD method_12107 populateEntities (Lnet/minecraft/class_3233;)V
ARG 1 region
2021-09-16 15:04:31 -04:00
METHOD method_12108 carve (Lnet/minecraft/class_3233;JLnet/minecraft/class_4543;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_2893$class_2894;)V
COMMENT Generates caves for the given chunk.
ARG 1 chunkRegion
ARG 2 seed
ARG 4 biomeAccess
ARG 5 structureAccessor
ARG 6 chunk
ARG 7 generationStep
METHOD method_12109 getStructuresConfig ()Lnet/minecraft/class_5311;
2021-09-16 15:04:31 -04:00
METHOD method_12110 buildSurface (Lnet/minecraft/class_3233;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
COMMENT Places the surface blocks of the biomes after the noise has been generated.
ARG 1 region
ARG 2 structures
ARG 3 chunk
2021-03-31 14:47:17 -04:00
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
2020-07-08 13:49:17 -04:00
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.
2021-04-16 10:19:52 -04:00
ARG 1 registryManager
ARG 2 structureAccessor
ARG 3 chunk
2021-04-16 10:19:52 -04:00
ARG 4 structureManager
ARG 5 worldSeed
2020-07-01 12:44:38 -04:00
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
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
ARG 2 structureAccessor
ARG 3 chunk
2021-02-03 14:34:30 -05:00
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.
2019-06-28 17:55:20 -04:00
ARG 1 x
ARG 2 z
ARG 3 heightmap
ARG 4 world
2019-06-28 17:55:20 -04:00
METHOD method_16398 getSeaLevel ()I
2021-02-03 14:34:30 -05:00
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
2021-02-03 14:34:30 -05:00
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
2021-02-03 14:34:30 -05:00
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
2020-07-23 18:20:03 -04:00
METHOD method_28506 getCodec ()Lcom/mojang/serialization/Codec;
METHOD method_28507 isStrongholdStartingChunk (Lnet/minecraft/class_1923;)Z
ARG 1 pos
METHOD method_28509 generateStrongholdPositions ()V
METHOD method_33730 getMinimumY ()I
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
METHOD method_38264 getStructureReferences (Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)I
ARG 0 structureAccessor
ARG 1 chunk
ARG 2 sectionPos
ARG 3 structureFeature
METHOD method_38266 canPlaceStrongholdInBiome (Lnet/minecraft/class_1959;)Z
ARG 0 biome
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
METHOD method_38273 (Lnet/minecraft/class_2378;Ljava/util/Map$Entry;Lnet/minecraft/class_1959;)Z
ARG 3 b
METHOD method_38274 testBiomeByKey (Lnet/minecraft/class_2378;Ljava/util/function/Predicate;Lnet/minecraft/class_1959;)Z
ARG 1 registry
ARG 2 condition
ARG 3 biome
2021-11-16 13:18:51 -05:00
METHOD method_38275 populateBiomes (Lnet/minecraft/class_2378;Ljava/util/concurrent/Executor;Lnet/minecraft/class_6748;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
METHOD method_38276 getMultiNoiseSampler ()Lnet/minecraft/class_6544$class_6552;
Structure stuff, based on liach's PR (#2829) * Structure stuff Signed-off-by: liach <liach@users.noreply.github.com> * This is post placement, not generation (addition of pieces) * docs * Update mappings/net/minecraft/structure/StructurePlacementData.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/structure/PostPlacementProcessor.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Merge branch '1.18-pre1' of https://github.com/FabricMC/yarn into pr-2729-structure * Drop invalid mappings * Re-add dropped mappings * PostPlacementProcessor: map lambda arg, rename args * Structure: bring mapping from my branch * StructurePiecesGenerator: follow convention of naming every World superinterface `world` * StructurePoolBasedGenerator: follow naming conventions * ChunkGenerator: follow naming conventions * ConfiguredStructureFeature: follow naming conventions * EndCityFeature: follow naming conventions * StructureFeature: fix naming, follow naming conventions * WoodlandMansionFeature: follow naming conventions * StructureFeature: remove invalid javadoc * Apply suggestions from code review Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> Co-authored-by: liach <liach@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
2021-11-15 20:31:21 -05:00
METHOD method_38669 (Lnet/minecraft/class_2378;Lnet/minecraft/class_1959;)Ljava/util/stream/Stream;
ARG 1 biome
METHOD method_39301 getCodecKey ()Ljava/util/Optional;
METHOD method_39462 getBlockBoxForChunk (Lnet/minecraft/class_2791;)Lnet/minecraft/class_3341;
ARG 0 chunk