2019-06-28 17:55:20 -04:00
CLASS net/minecraft/class_2794 net/minecraft/world/gen/chunk/ChunkGenerator
2020-05-11 20:17:01 -04:00
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}.
2020-10-19 15:02:02 -04:00
FIELD field_12761 populationSource Lnet/minecraft/class_1966;
2020-11-20 12:31:04 -05:00
COMMENT Used to control the population step without replacing the actual biome that comes from the original {@link #biomeSource}.
2020-10-19 15:02:02 -04:00
COMMENT
COMMENT <p>This is used by {@link FlatChunkGenerator} to overwrite biome properties like whether lakes generate, while preserving the original biome ID.
2020-08-07 14:32:09 -04:00
FIELD field_24746 CODEC Lcom/mojang/serialization/Codec;
2020-10-19 15:02:02 -04:00
FIELD field_24747 biomeSource Lnet/minecraft/class_1966;
2022-03-31 02:38:03 -04:00
FIELD field_36405 concentricRingPositions Ljava/util/Map;
2022-03-30 05:10:15 -04:00
FIELD field_37053 structureSetRegistry Lnet/minecraft/class_2378;
2022-03-31 02:38:03 -04:00
FIELD field_37054 structureOverrides Ljava/util/Optional;
2022-03-30 05:10:15 -04:00
FIELD field_37055 structurePlacements Ljava/util/Map;
2022-03-31 02:38:03 -04:00
FIELD field_37056 hasComputedStructurePlacements Z
2022-02-22 11:29:15 -05:00
FIELD field_37254 LOGGER Lorg/slf4j/Logger;
2022-03-30 05:10:15 -04:00
METHOD <init> (Lnet/minecraft/class_2378;Ljava/util/Optional;Lnet/minecraft/class_1966;)V
ARG 1 structureSetRegistry
2022-03-31 02:38:03 -04:00
ARG 2 structureOverrides
2022-03-30 05:10:15 -04:00
ARG 3 biomeSource
METHOD <init> (Lnet/minecraft/class_2378;Ljava/util/Optional;Lnet/minecraft/class_1966;Lnet/minecraft/class_1966;)V
ARG 1 structureSetRegistry
2022-03-31 02:38:03 -04:00
ARG 2 structureOverrides
2022-03-30 05:10:15 -04:00
ARG 3 populationSource
ARG 4 biomeSource
2022-03-16 16:37:32 -04:00
METHOD method_12088 populateNoise (Ljava/util/concurrent/Executor;Lnet/minecraft/class_6748;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
2020-05-11 20:17:01 -04:00
COMMENT Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.
2021-02-11 12:11:27 -05:00
ARG 1 executor
2021-11-22 10:31:34 -05:00
ARG 2 blender
2022-03-30 05:10:15 -04:00
ARG 3 noiseConfig
ARG 4 structureAccessor
ARG 5 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
2021-09-16 19:24:14 -04:00
ARG 1 world
2021-11-09 11:55:29 -05:00
ARG 2 chunk
2021-09-16 19:24:14 -04:00
ARG 3 structureAccessor
2022-02-18 12:15:29 -05:00
METHOD method_12103 locateStructure (Lnet/minecraft/class_3218;Lnet/minecraft/class_6885;Lnet/minecraft/class_2338;IZ)Lcom/mojang/datafixers/util/Pair;
2020-07-09 13:44:24 -04:00
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.
2021-04-13 07:59:43 -04:00
COMMENT <p>
COMMENT The radius is ignored for strongholds.
2020-07-09 13:44:24 -04:00
COMMENT
2020-07-19 10:06:04 -04:00
COMMENT @return {@code null} if no structure could be found within the given search radius
2022-03-30 05:10:15 -04:00
ARG 1 world
2022-05-02 08:52:17 -04:00
ARG 2 structures
2019-01-30 05:53:59 -05:00
ARG 3 center
2019-01-09 03:51:49 -05:00
ARG 4 radius
2021-04-13 07:59:43 -04:00
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
2020-07-19 10:06:04 -04:00
COMMENT whether only structures that are not referenced by generated chunks (chunks past the STRUCTURE_STARTS stage) are returned, excluding strongholds
2020-10-19 15:02:02 -04:00
METHOD method_12104 getWorldHeight ()I
2019-06-28 17:55:20 -04:00
METHOD method_12107 populateEntities (Lnet/minecraft/class_3233;)V
2019-08-19 12:24:19 -04:00
ARG 1 region
2022-03-16 16:37:32 -04:00
METHOD method_12108 carve (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
2021-02-08 14:46:49 -05:00
COMMENT Generates caves for the given chunk.
2021-11-09 11:55:29 -05:00
ARG 1 chunkRegion
ARG 2 seed
2022-03-30 05:10:15 -04:00
ARG 4 noiseConfig
ARG 5 world
ARG 6 structureAccessor
ARG 7 chunk
ARG 8 carverStep
2022-03-16 16:37:32 -04:00
METHOD method_12110 buildSurface (Lnet/minecraft/class_3233;Lnet/minecraft/class_5138;Lnet/minecraft/class_7138;Lnet/minecraft/class_2791;)V
2021-02-08 14:46:49 -05:00
COMMENT Places the surface blocks of the biomes after the noise has been generated.
2020-03-19 12:24:12 -04:00
ARG 1 region
2021-10-19 12:26:17 -04:00
ARG 2 structures
2022-03-30 05:10:15 -04:00
ARG 3 noiseConfig
ARG 4 chunk
2022-02-09 13:58:35 -05:00
METHOD method_12113 getEntitySpawnList (Lnet/minecraft/class_6880;Lnet/minecraft/class_5138;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6012;
2022-02-19 06:29:24 -05:00
ARG 1 biome
2020-05-14 16:55:51 -04:00
ARG 2 accessor
ARG 3 group
ARG 4 pos
2022-03-16 16:37:32 -04:00
METHOD method_16129 setStructureStarts (Lnet/minecraft/class_5455;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_3485;J)V
2020-07-09 13:44:24 -04:00
COMMENT Determines which structures should start in the given chunk and creates their starting points.
2022-02-19 06:29:24 -05:00
ARG 1 registryManager
2022-03-30 05:10:15 -04:00
ARG 2 noiseConfig
ARG 3 structureAccessor
ARG 4 chunk
ARG 5 structureManager
ARG 6 seed
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
2020-07-09 13:44:24 -04:00
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.
2020-10-19 15:02:02 -04:00
ARG 1 world
2021-11-15 20:31:21 -05:00
ARG 2 structureAccessor
2020-05-14 16:55:51 -04:00
ARG 3 chunk
2022-03-16 16:37:32 -04:00
METHOD method_16397 getHeight (IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
2021-02-08 14:46:49 -05:00
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
2021-02-08 14:46:49 -05:00
ARG 3 heightmap
2021-02-04 13:34:17 -05:00
ARG 4 world
2022-03-30 05:10:15 -04:00
ARG 5 noiseConfig
2019-06-28 17:55:20 -04:00
METHOD method_16398 getSeaLevel ()I
2022-03-16 16:37:32 -04:00
METHOD method_18028 getHeightInGround (IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
2020-03-19 12:24:12 -04:00
ARG 1 x
ARG 2 z
2021-02-08 14:46:49 -05:00
ARG 3 heightmap
ARG 4 world
2022-03-30 05:10:15 -04:00
ARG 5 noiseConfig
2022-03-16 16:37:32 -04:00
METHOD method_20402 getHeightOnGround (IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
2020-03-19 12:24:12 -04:00
ARG 1 x
ARG 2 z
2021-02-08 14:46:49 -05:00
ARG 3 heightmap
ARG 4 world
2022-03-30 05:10:15 -04:00
ARG 5 noiseConfig
2022-03-16 16:37:32 -04:00
METHOD method_26261 getColumnSample (IILnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Lnet/minecraft/class_4966;
2021-02-08 14:46:49 -05:00
COMMENT Returns a sample of all the block states in a column for use in structure generation.
2020-03-19 12:24:12 -04:00
ARG 1 x
ARG 2 z
2021-02-04 13:34:17 -05:00
ARG 3 world
2022-03-30 05:10:15 -04:00
ARG 4 noiseConfig
2020-07-23 18:20:03 -04:00
METHOD method_28506 getCodec ()Lcom/mojang/serialization/Codec;
2022-03-31 02:38:03 -04:00
METHOD method_28509 generateConcentricRingPositions (Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;Lnet/minecraft/class_6871;)Ljava/util/concurrent/CompletableFuture;
2022-03-30 05:10:15 -04:00
ARG 1 structureSet
ARG 2 noiseConfig
ARG 3 concentricRingsStructurePlacement
2021-02-11 12:11:27 -05:00
METHOD method_33730 getMinimumY ()I
2022-03-16 16:37:32 -04:00
METHOD method_38264 getStructureReferences (Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)I
2021-11-15 20:31:21 -05:00
ARG 0 structureAccessor
ARG 1 chunk
ARG 2 sectionPos
2022-03-30 05:10:15 -04:00
ARG 3 structure
2022-03-16 16:37:32 -04:00
METHOD method_38275 populateBiomes (Lnet/minecraft/class_2378;Ljava/util/concurrent/Executor;Lnet/minecraft/class_7138;Lnet/minecraft/class_6748;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
2021-11-22 10:31:34 -05:00
ARG 1 biomeRegistry
2022-03-30 05:10:15 -04:00
ARG 3 noiseConfig
ARG 4 blender
ARG 5 structureAccessor
ARG 6 chunk
2021-11-09 11:55:29 -05:00
METHOD method_39301 getCodecKey ()Ljava/util/Optional;
METHOD method_39462 getBlockBoxForChunk (Lnet/minecraft/class_2791;)Lnet/minecraft/class_3341;
ARG 0 chunk
2022-03-16 16:37:32 -04:00
METHOD method_40147 getConcentricRingsStartChunks (Lnet/minecraft/class_6871;Lnet/minecraft/class_7138;)Ljava/util/List;
2022-02-19 06:29:24 -05:00
ARG 1 structurePlacement
METHOD method_40149 filterBiome (Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;
ARG 1 biome
2022-03-16 16:37:32 -04:00
METHOD method_40450 getDebugHudText (Ljava/util/List;Lnet/minecraft/class_7138;Lnet/minecraft/class_2338;)V
2022-02-19 06:29:24 -05:00
ARG 1 text
2022-03-30 05:10:15 -04:00
METHOD method_41039 streamStructureSets ()Ljava/util/stream/Stream;
2022-03-31 02:38:03 -04:00
METHOD method_41042 createStructureSetRegistryGetter (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
ARG 0 instance
2022-03-30 05:10:15 -04:00
METHOD method_41053 shouldStructureGenerateInRange (Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;JIII)Z
ARG 1 structureSet
ARG 2 noiseConfig
ARG 3 seed
ARG 5 chunkX
ARG 6 chunkZ
ARG 7 chunkRange
METHOD method_41056 (Ljava/util/Set;Lnet/minecraft/class_7138;Lnet/minecraft/class_6880;)V
ARG 3 structureSet
METHOD method_41057 computeStructurePlacements (Lnet/minecraft/class_7138;)V
ARG 1 noiseConfig