Package net.minecraft.world.gen.chunk
Class ChunkGenerator
java.lang.Object
net.minecraft.world.gen.chunk.ChunkGenerator
- Direct Known Subclasses:
DebugChunkGenerator,FlatChunkGenerator,NoiseChunkGenerator
In charge of shaping, adding biome specific surface blocks, and carving chunks,
as well as populating the generated chunks with features and entities.
Biome placement starts here, however all vanilla and most modded chunk generators delegate this to a biome source.
- Mappings:
Namespace Name official csiintermediary net/minecraft/class_2794named net/minecraft/world/gen/chunk/ChunkGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BiomeSourcestatic final com.mojang.serialization.Codec<ChunkGenerator>private final Map<ConcentricRingsStructurePlacement,CompletableFuture<List<ChunkPos>>> protected final Registry<StructureSet>protected final Optional<RegistryEntryList<StructureSet>>private final Map<StructureFeature,List<StructurePlacement>> private booleanstatic final intprivate static final org.slf4j.Loggerprotected final BiomeSourceUsed to control the population step without replacing the actual biome that comes from the originalbiomeSource. -
Constructor Summary
ConstructorsConstructorDescriptionChunkGenerator(Registry<StructureSet> registry, Optional<RegistryEntryList<StructureSet>> optional, BiomeSource biomeSource) ChunkGenerator(Registry<StructureSet> registry, Optional<RegistryEntryList<StructureSet>> optional, BiomeSource biomeSource, BiomeSource biomeSource2) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStructureReferences(StructureWorldAccess world, StructureAccessor structureAccessor, Chunk chunk) Finds all structures that the given chunk intersects, and adds references to their starting chunks to it.abstract voidbuildSurface(ChunkRegion region, StructureAccessor structures, class_7138 class_7138, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.abstract voidcarve(ChunkRegion chunkRegion, long seed, class_7138 class_7138, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carver) Generates caves for the given chunk.protected RegistryEntry<Biome>filterBiome(RegistryEntry<Biome> biome) voidgenerateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) private CompletableFuture<List<ChunkPos>>generateStrongholdPositions(RegistryEntry<StructureSet> registryEntry, class_7138 class_7138, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) private static BlockBoxgetBlockBoxForChunk(Chunk chunk) protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator>getCodec()Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>>abstract VerticalBlockSamplegetColumnSample(int x, int z, HeightLimitView world, class_7138 class_7138) Returns a sample of all the block states in a column for use in structure generation.getConcentricRingsStartChunks(ConcentricRingsStructurePlacement structurePlacement, class_7138 class_7138) abstract voidgetDebugHudText(List<String> text, class_7138 class_7138, BlockPos blockPos) getEntitySpawnList(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) abstract intgetHeight(int x, int z, Heightmap.Type heightmap, HeightLimitView world, class_7138 class_7138) Returns the raw noise height of a column for use in structure generation.intgetHeightInGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, class_7138 class_7138) intgetHeightOnGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, class_7138 class_7138) abstract intabstract intintgetSpawnHeight(HeightLimitView world) private static intgetStructureReferences(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, StructureFeature structureFeature) abstract int@Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> locateStructure(ServerWorld serverWorld, RegistryEntryList<StructureFeature> registryEntryList, BlockPos center, int radius, boolean skipExistingChunks) Tries to find the closest structure of a given type near a given block.private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> method_40146(Set<RegistryEntry<StructureFeature>> set, WorldView worldView, StructureAccessor structureAccessor, int int2, int int3, int int4, boolean bool, long long2, RandomSpreadStructurePlacement randomSpreadStructurePlacement) private @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> method_40148(Set<RegistryEntry<StructureFeature>> set, ServerWorld serverWorld, StructureAccessor structureAccessor, BlockPos blockPos, boolean bool, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) protected static final <T extends ChunkGenerator>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Registry<StructureSet>> method_41042(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) private booleanmethod_41044(StructureSet.WeightedEntry weightedEntry, StructureAccessor structureAccessor, DynamicRegistryManager dynamicRegistryManager, class_7138 class_7138, StructureManager structureManager, long long2, Chunk chunk, ChunkPos chunkPos, ChunkSectionPos chunkSectionPos) booleanmethod_41053(RegistryEntry<StructureSet> registryEntry, class_7138 class_7138, long long2, int int2, int int3, int int4) private List<StructurePlacement>method_41055(RegistryEntry<StructureFeature> registryEntry, class_7138 class_7138) private voidmethod_41057(class_7138 class_7138) voidmethod_41058(class_7138 class_7138) private static booleanmethod_41521(StructureAccessor structureAccessor, StructureStart structureStart) private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> method_41522(Set<RegistryEntry<StructureFeature>> set, WorldView worldView, StructureAccessor structureAccessor, boolean bool, StructurePlacement structurePlacement, ChunkPos chunkPos) populateBiomes(Registry<Biome> biomeRegistry, Executor executor, class_7138 class_7138, Blender blender, StructureAccessor structureAccessor, Chunk chunk) abstract voidpopulateEntities(ChunkRegion region) abstract CompletableFuture<Chunk>populateNoise(Executor executor, Blender blender, class_7138 structureAccessor, StructureAccessor structureAccessor2, Chunk chunk) Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.voidsetStructureStarts(DynamicRegistryManager registryManager, class_7138 class_7138, StructureAccessor structureAccessor, Chunk chunk, StructureManager structureManager, long long2) Determines which structures should start in the given chunk and creates their starting points.
-
Field Details
-
field_37658
public static final int field_37658- See Also:
- Mappings:
Namespace Name Mixin selector official aLcsi;a:Iintermediary field_37658Lnet/minecraft/class_2794;field_37658:Inamed field_37658Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_37658:I
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official gLcsi;g:Lorg/slf4j/Logger;intermediary field_37254Lnet/minecraft/class_2794;field_37254:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/world/gen/chunk/ChunkGenerator;LOGGER:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLcsi;b:Lcom/mojang/serialization/Codec;intermediary field_24746Lnet/minecraft/class_2794;field_24746:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/ChunkGenerator;CODEC:Lcom/mojang/serialization/Codec;
-
field_37053
- Mappings:
Namespace Name Mixin selector official cLcsi;c:Lhd;intermediary field_37053Lnet/minecraft/class_2794;field_37053:Lnet/minecraft/class_2378;named field_37053Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_37053:Lnet/minecraft/util/registry/Registry;
-
populationSource
Used to control the population step without replacing the actual biome that comes from the originalbiomeSource.This is used by
FlatChunkGeneratorto overwrite biome properties like whether lakes generate, while preserving the original biome ID.- Mappings:
Namespace Name Mixin selector official dLcsi;d:Lccz;intermediary field_12761Lnet/minecraft/class_2794;field_12761:Lnet/minecraft/class_1966;named populationSourceLnet/minecraft/world/gen/chunk/ChunkGenerator;populationSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
biomeSource
- Mappings:
Namespace Name Mixin selector official eLcsi;e:Lccz;intermediary field_24747Lnet/minecraft/class_2794;field_24747:Lnet/minecraft/class_1966;named biomeSourceLnet/minecraft/world/gen/chunk/ChunkGenerator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
field_37054
- Mappings:
Namespace Name Mixin selector official fLcsi;f:Ljava/util/Optional;intermediary field_37054Lnet/minecraft/class_2794;field_37054:Ljava/util/Optional;named field_37054Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_37054:Ljava/util/Optional;
-
field_37055
- Mappings:
Namespace Name Mixin selector official hLcsi;h:Ljava/util/Map;intermediary field_37055Lnet/minecraft/class_2794;field_37055:Ljava/util/Map;named field_37055Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_37055:Ljava/util/Map;
-
field_36405
- Mappings:
Namespace Name Mixin selector official iLcsi;i:Ljava/util/Map;intermediary field_36405Lnet/minecraft/class_2794;field_36405:Ljava/util/Map;named field_36405Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_36405:Ljava/util/Map;
-
field_37056
private boolean field_37056- Mappings:
Namespace Name Mixin selector official jLcsi;j:Zintermediary field_37056Lnet/minecraft/class_2794;field_37056:Znamed field_37056Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_37056:Z
-
-
Constructor Details
-
ChunkGenerator
public ChunkGenerator(Registry<StructureSet> registry, Optional<RegistryEntryList<StructureSet>> optional, BiomeSource biomeSource) -
ChunkGenerator
public ChunkGenerator(Registry<StructureSet> registry, Optional<RegistryEntryList<StructureSet>> optional, BiomeSource biomeSource, BiomeSource biomeSource2)
-
-
Method Details
-
method_41042
protected static final <T extends ChunkGenerator> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Registry<StructureSet>> method_41042(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;intermediary method_41042Lnet/minecraft/class_2794;method_41042(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;named method_41042Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41042(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
-
method_41039
- Mappings:
Namespace Name Mixin selector official aLcsi;a()Ljava/util/stream/Stream;intermediary method_41039Lnet/minecraft/class_2794;method_41039()Ljava/util/stream/Stream;named method_41039Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41039()Ljava/util/stream/Stream;
-
method_41057
- Mappings:
Namespace Name Mixin selector official bLcsi;b(Lcwf;)Vintermediary method_41057Lnet/minecraft/class_2794;method_41057(Lnet/minecraft/class_7138;)Vnamed method_41057Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41057(Lnet/minecraft/class_7138;)V
-
generateStrongholdPositions
private CompletableFuture<List<ChunkPos>> generateStrongholdPositions(RegistryEntry<StructureSet> registryEntry, class_7138 class_7138, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lgt;Lcwf;Ldgp;)Ljava/util/concurrent/CompletableFuture;intermediary method_28509Lnet/minecraft/class_2794;method_28509(Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;Lnet/minecraft/class_6871;)Ljava/util/concurrent/CompletableFuture;named generateStrongholdPositionsLnet/minecraft/world/gen/chunk/ChunkGenerator;generateStrongholdPositions(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/class_7138;Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;)Ljava/util/concurrent/CompletableFuture;
-
getCodec
- Mappings:
Namespace Name Mixin selector official bLcsi;b()Lcom/mojang/serialization/Codec;intermediary method_28506Lnet/minecraft/class_2794;method_28506()Lcom/mojang/serialization/Codec;named getCodecLnet/minecraft/world/gen/chunk/ChunkGenerator;getCodec()Lcom/mojang/serialization/Codec;
-
getCodecKey
public Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> getCodecKey()- Mappings:
Namespace Name Mixin selector official cLcsi;c()Ljava/util/Optional;intermediary method_39301Lnet/minecraft/class_2794;method_39301()Ljava/util/Optional;named getCodecKeyLnet/minecraft/world/gen/chunk/ChunkGenerator;getCodecKey()Ljava/util/Optional;
-
populateBiomes
public CompletableFuture<Chunk> populateBiomes(Registry<Biome> biomeRegistry, Executor executor, class_7138 class_7138, Blender blender, StructureAccessor structureAccessor, Chunk chunk) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lhd;Ljava/util/concurrent/Executor;Lcwf;Lcwr;Lccq;Lcsh;)Ljava/util/concurrent/CompletableFuture;intermediary method_38275Lnet/minecraft/class_2794;method_38275(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;named populateBiomesLnet/minecraft/world/gen/chunk/ChunkGenerator;populateBiomes(Lnet/minecraft/util/registry/Registry;Ljava/util/concurrent/Executor;Lnet/minecraft/class_7138;Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
-
carve
public abstract void carve(ChunkRegion chunkRegion, long seed, class_7138 class_7138, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carver) Generates caves for the given chunk.- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lael;JLcwf;Lccx;Lccq;Lcsh;Lcvk$a;)Vintermediary method_12108Lnet/minecraft/class_2794;method_12108(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;)Vnamed carveLnet/minecraft/world/gen/chunk/ChunkGenerator;carve(Lnet/minecraft/world/ChunkRegion;JLnet/minecraft/class_7138;Lnet/minecraft/world/biome/source/BiomeAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/GenerationStep$Carver;)V
-
locateStructure
@Nullable public @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> locateStructure(ServerWorld serverWorld, RegistryEntryList<StructureFeature> registryEntryList, BlockPos center, int radius, boolean skipExistingChunks) Tries to find the closest structure of a given type near a given block.New chunks will only be generated up to the
ChunkStatus.STRUCTURE_STARTSphase by this method.The radius is ignored for strongholds.
- Parameters:
radius- the search radius in chunks around the chunk the given block position is in; a radius of 0 will only search in the given chunkskipExistingChunks- whether only structures that are not referenced by generated chunks (chunks past the STRUCTURE_STARTS stage) are returned, excluding strongholds- Returns:
nullif no structure could be found within the given search radius- Mappings:
Namespace Name Mixin selector official aLcsi;a(Laee;Lgv;Lgk;IZ)Lcom/mojang/datafixers/util/Pair;intermediary method_12103Lnet/minecraft/class_2794;method_12103(Lnet/minecraft/class_3218;Lnet/minecraft/class_6885;Lnet/minecraft/class_2338;IZ)Lcom/mojang/datafixers/util/Pair;named locateStructureLnet/minecraft/world/gen/chunk/ChunkGenerator;locateStructure(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/registry/RegistryEntryList;Lnet/minecraft/util/math/BlockPos;IZ)Lcom/mojang/datafixers/util/Pair;
-
method_40148
@Nullable private @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> method_40148(Set<RegistryEntry<StructureFeature>> set, ServerWorld serverWorld, StructureAccessor structureAccessor, BlockPos blockPos, boolean bool, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Ljava/util/Set;Laee;Lccq;Lgk;ZLdgp;)Lcom/mojang/datafixers/util/Pair;intermediary method_40148Lnet/minecraft/class_2794;method_40148(Ljava/util/Set;Lnet/minecraft/class_3218;Lnet/minecraft/class_5138;Lnet/minecraft/class_2338;ZLnet/minecraft/class_6871;)Lcom/mojang/datafixers/util/Pair;named method_40148Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_40148(Ljava/util/Set;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;)Lcom/mojang/datafixers/util/Pair;
-
method_40146
@Nullable private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> method_40146(Set<RegistryEntry<StructureFeature>> set, WorldView worldView, StructureAccessor structureAccessor, int int2, int int3, int int4, boolean bool, long long2, RandomSpreadStructurePlacement randomSpreadStructurePlacement) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Ljava/util/Set;Lccc;Lccq;IIIZJLdgq;)Lcom/mojang/datafixers/util/Pair;intermediary method_40146Lnet/minecraft/class_2794;method_40146(Ljava/util/Set;Lnet/minecraft/class_4538;Lnet/minecraft/class_5138;IIIZJLnet/minecraft/class_6872;)Lcom/mojang/datafixers/util/Pair;named method_40146Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_40146(Ljava/util/Set;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/gen/StructureAccessor;IIIZJLnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;)Lcom/mojang/datafixers/util/Pair;
-
method_41522
@Nullable private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureFeature>> method_41522(Set<RegistryEntry<StructureFeature>> set, WorldView worldView, StructureAccessor structureAccessor, boolean bool, StructurePlacement structurePlacement, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Ljava/util/Set;Lccc;Lccq;ZLdgs;Lcbg;)Lcom/mojang/datafixers/util/Pair;intermediary method_41522Lnet/minecraft/class_2794;method_41522(Ljava/util/Set;Lnet/minecraft/class_4538;Lnet/minecraft/class_5138;ZLnet/minecraft/class_6874;Lnet/minecraft/class_1923;)Lcom/mojang/datafixers/util/Pair;named method_41522Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41522(Ljava/util/Set;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/gen/StructureAccessor;ZLnet/minecraft/world/gen/chunk/placement/StructurePlacement;Lnet/minecraft/util/math/ChunkPos;)Lcom/mojang/datafixers/util/Pair;
-
method_41521
private static boolean method_41521(StructureAccessor structureAccessor, StructureStart structureStart) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lccq;Ldge;)Zintermediary method_41521Lnet/minecraft/class_2794;method_41521(Lnet/minecraft/class_5138;Lnet/minecraft/class_3449;)Znamed method_41521Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41521(Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/structure/StructureStart;)Z
-
generateFeatures
public void generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lccr;Lcsh;Lccq;)Vintermediary method_12102Lnet/minecraft/class_2794;method_12102(Lnet/minecraft/class_5281;Lnet/minecraft/class_2791;Lnet/minecraft/class_5138;)Vnamed generateFeaturesLnet/minecraft/world/gen/chunk/ChunkGenerator;generateFeatures(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/StructureAccessor;)V
-
method_41053
public boolean method_41053(RegistryEntry<StructureSet> registryEntry, class_7138 class_7138, long long2, int int2, int int3, int int4) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lgt;Lcwf;JIII)Zintermediary method_41053Lnet/minecraft/class_2794;method_41053(Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;JIII)Znamed method_41053Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41053(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/class_7138;JIII)Z
-
getBlockBoxForChunk
- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lcsh;)Ldfo;intermediary method_39462Lnet/minecraft/class_2794;method_39462(Lnet/minecraft/class_2791;)Lnet/minecraft/class_3341;named getBlockBoxForChunkLnet/minecraft/world/gen/chunk/ChunkGenerator;getBlockBoxForChunk(Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/util/math/BlockBox;
-
buildSurface
public abstract void buildSurface(ChunkRegion region, StructureAccessor structures, class_7138 class_7138, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lael;Lccq;Lcwf;Lcsh;)Vintermediary method_12110Lnet/minecraft/class_2794;method_12110(Lnet/minecraft/class_3233;Lnet/minecraft/class_5138;Lnet/minecraft/class_7138;Lnet/minecraft/class_2791;)Vnamed buildSurfaceLnet/minecraft/world/gen/chunk/ChunkGenerator;buildSurface(Lnet/minecraft/world/ChunkRegion;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/class_7138;Lnet/minecraft/world/chunk/Chunk;)V
-
populateEntities
- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lael;)Vintermediary method_12107Lnet/minecraft/class_2794;method_12107(Lnet/minecraft/class_3233;)Vnamed populateEntitiesLnet/minecraft/world/gen/chunk/ChunkGenerator;populateEntities(Lnet/minecraft/world/ChunkRegion;)V
-
getSpawnHeight
- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lccb;)Iintermediary method_12100Lnet/minecraft/class_2794;method_12100(Lnet/minecraft/class_5539;)Inamed getSpawnHeightLnet/minecraft/world/gen/chunk/ChunkGenerator;getSpawnHeight(Lnet/minecraft/world/HeightLimitView;)I
-
getBiomeSource
- Mappings:
Namespace Name Mixin selector official dLcsi;d()Lccz;intermediary method_12098Lnet/minecraft/class_2794;method_12098()Lnet/minecraft/class_1966;named getBiomeSourceLnet/minecraft/world/gen/chunk/ChunkGenerator;getBiomeSource()Lnet/minecraft/world/biome/source/BiomeSource;
-
getWorldHeight
public abstract int getWorldHeight()- Mappings:
Namespace Name Mixin selector official eLcsi;e()Iintermediary method_12104Lnet/minecraft/class_2794;method_12104()Inamed getWorldHeightLnet/minecraft/world/gen/chunk/ChunkGenerator;getWorldHeight()I
-
getEntitySpawnList
public Pool<SpawnSettings.SpawnEntry> getEntitySpawnList(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lgt;Lccq;Lays;Lgk;)Lavn;intermediary method_12113Lnet/minecraft/class_2794;method_12113(Lnet/minecraft/class_6880;Lnet/minecraft/class_5138;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6012;named getEntitySpawnListLnet/minecraft/world/gen/chunk/ChunkGenerator;getEntitySpawnList(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/collection/Pool;
-
setStructureStarts
public void setStructureStarts(DynamicRegistryManager registryManager, class_7138 class_7138, StructureAccessor structureAccessor, Chunk chunk, StructureManager structureManager, long long2) Determines which structures should start in the given chunk and creates their starting points.- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lhe;Lcwf;Lccq;Lcsh;Ldjo;J)Vintermediary method_16129Lnet/minecraft/class_2794;method_16129(Lnet/minecraft/class_5455;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_3485;J)Vnamed setStructureStartsLnet/minecraft/world/gen/chunk/ChunkGenerator;setStructureStarts(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/class_7138;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/structure/StructureManager;J)V
-
method_41044
private boolean method_41044(StructureSet.WeightedEntry weightedEntry, StructureAccessor structureAccessor, DynamicRegistryManager dynamicRegistryManager, class_7138 class_7138, StructureManager structureManager, long long2, Chunk chunk, ChunkPos chunkPos, ChunkSectionPos chunkSectionPos) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Ldgc$a;Lccq;Lhe;Lcwf;Ldjo;JLcsh;Lcbg;Lhh;)Zintermediary method_41044Lnet/minecraft/class_2794;method_41044(Lnet/minecraft/class_7059$class_7060;Lnet/minecraft/class_5138;Lnet/minecraft/class_5455;Lnet/minecraft/class_7138;Lnet/minecraft/class_3485;JLnet/minecraft/class_2791;Lnet/minecraft/class_1923;Lnet/minecraft/class_4076;)Znamed method_41044Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41044(Lnet/minecraft/structure/StructureSet$WeightedEntry;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/class_7138;Lnet/minecraft/structure/StructureManager;JLnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/ChunkSectionPos;)Z
-
getStructureReferences
private static int getStructureReferences(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, StructureFeature structureFeature) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lccq;Lcsh;Lhh;Ldfw;)Iintermediary method_38264Lnet/minecraft/class_2794;method_38264(Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)Inamed getStructureReferencesLnet/minecraft/world/gen/chunk/ChunkGenerator;getStructureReferences(Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/gen/feature/StructureFeature;)I
-
filterBiome
- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lgt;)Lgt;intermediary method_40149Lnet/minecraft/class_2794;method_40149(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880;named filterBiomeLnet/minecraft/world/gen/chunk/ChunkGenerator;filterBiome(Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/util/registry/RegistryEntry;
-
addStructureReferences
public void addStructureReferences(StructureWorldAccess world, StructureAccessor structureAccessor, Chunk chunk) Finds all structures that the given chunk intersects, and adds references to their starting chunks to it. A radius of 8 chunks around the given chunk will be searched for structure starts.- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lccr;Lccq;Lcsh;)Vintermediary method_16130Lnet/minecraft/class_2794;method_16130(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Vnamed addStructureReferencesLnet/minecraft/world/gen/chunk/ChunkGenerator;addStructureReferences(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
-
populateNoise
public abstract CompletableFuture<Chunk> populateNoise(Executor executor, Blender blender, class_7138 structureAccessor, StructureAccessor structureAccessor2, Chunk chunk) Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.- Mappings:
Namespace Name Mixin selector official aLcsi;a(Ljava/util/concurrent/Executor;Lcwr;Lcwf;Lccq;Lcsh;)Ljava/util/concurrent/CompletableFuture;intermediary method_12088Lnet/minecraft/class_2794;method_12088(Ljava/util/concurrent/Executor;Lnet/minecraft/class_6748;Lnet/minecraft/class_7138;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;named populateNoiseLnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Ljava/util/concurrent/Executor;Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/class_7138;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
-
getSeaLevel
public abstract int getSeaLevel()- Mappings:
Namespace Name Mixin selector official fLcsi;f()Iintermediary method_16398Lnet/minecraft/class_2794;method_16398()Inamed getSeaLevelLnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
-
getMinimumY
public abstract int getMinimumY()- Mappings:
Namespace Name Mixin selector official gLcsi;g()Iintermediary method_33730Lnet/minecraft/class_2794;method_33730()Inamed getMinimumYLnet/minecraft/world/gen/chunk/ChunkGenerator;getMinimumY()I
-
getHeight
public abstract int getHeight(int x, int z, Heightmap.Type heightmap, HeightLimitView world, class_7138 class_7138) Returns the raw noise height of a column for use in structure generation.- Mappings:
Namespace Name Mixin selector official aLcsi;a(IILcvo$a;Lccb;Lcwf;)Iintermediary method_16397Lnet/minecraft/class_2794;method_16397(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Inamed getHeightLnet/minecraft/world/gen/chunk/ChunkGenerator;getHeight(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/class_7138;)I
-
getColumnSample
public abstract VerticalBlockSample getColumnSample(int x, int z, HeightLimitView world, class_7138 class_7138) Returns a sample of all the block states in a column for use in structure generation.- Mappings:
Namespace Name Mixin selector official aLcsi;a(IILccb;Lcwf;)Lccl;intermediary method_26261Lnet/minecraft/class_2794;method_26261(IILnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Lnet/minecraft/class_4966;named getColumnSampleLnet/minecraft/world/gen/chunk/ChunkGenerator;getColumnSample(IILnet/minecraft/world/HeightLimitView;Lnet/minecraft/class_7138;)Lnet/minecraft/world/gen/chunk/VerticalBlockSample;
-
getHeightOnGround
public int getHeightOnGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, class_7138 class_7138) - Mappings:
Namespace Name Mixin selector official bLcsi;b(IILcvo$a;Lccb;Lcwf;)Iintermediary method_20402Lnet/minecraft/class_2794;method_20402(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Inamed getHeightOnGroundLnet/minecraft/world/gen/chunk/ChunkGenerator;getHeightOnGround(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/class_7138;)I
-
getHeightInGround
public int getHeightInGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, class_7138 class_7138) - Mappings:
Namespace Name Mixin selector official cLcsi;c(IILcvo$a;Lccb;Lcwf;)Iintermediary method_18028Lnet/minecraft/class_2794;method_18028(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Inamed getHeightInGroundLnet/minecraft/world/gen/chunk/ChunkGenerator;getHeightInGround(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/class_7138;)I
-
method_41058
- Mappings:
Namespace Name Mixin selector official aLcsi;a(Lcwf;)Vintermediary method_41058Lnet/minecraft/class_2794;method_41058(Lnet/minecraft/class_7138;)Vnamed method_41058Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41058(Lnet/minecraft/class_7138;)V
-
getConcentricRingsStartChunks
@Nullable public @Nullable List<ChunkPos> getConcentricRingsStartChunks(ConcentricRingsStructurePlacement structurePlacement, class_7138 class_7138) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Ldgp;Lcwf;)Ljava/util/List;intermediary method_40147Lnet/minecraft/class_2794;method_40147(Lnet/minecraft/class_6871;Lnet/minecraft/class_7138;)Ljava/util/List;named getConcentricRingsStartChunksLnet/minecraft/world/gen/chunk/ChunkGenerator;getConcentricRingsStartChunks(Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;Lnet/minecraft/class_7138;)Ljava/util/List;
-
method_41055
private List<StructurePlacement> method_41055(RegistryEntry<StructureFeature> registryEntry, class_7138 class_7138) - Mappings:
Namespace Name Mixin selector official aLcsi;a(Lgt;Lcwf;)Ljava/util/List;intermediary method_41055Lnet/minecraft/class_2794;method_41055(Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;)Ljava/util/List;named method_41055Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41055(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/class_7138;)Ljava/util/List;
-
getDebugHudText
- Mappings:
Namespace Name Mixin selector official aLcsi;a(Ljava/util/List;Lcwf;Lgk;)Vintermediary method_40450Lnet/minecraft/class_2794;method_40450(Ljava/util/List;Lnet/minecraft/class_7138;Lnet/minecraft/class_2338;)Vnamed getDebugHudTextLnet/minecraft/world/gen/chunk/ChunkGenerator;getDebugHudText(Ljava/util/List;Lnet/minecraft/class_7138;Lnet/minecraft/util/math/BlockPos;)V
-