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 named net/minecraft/world/gen/chunk/ChunkGenerator
intermediary net/minecraft/class_2794
official dua
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BiomeSource
static final com.mojang.serialization.Codec
<ChunkGenerator> private final Function
<RegistryEntry<Biome>, GenerationSettings> private final Supplier
<List<PlacedFeatureIndexer.IndexedFeatures>> -
Constructor Summary
ConstructorDescriptionChunkGenerator
(BiomeSource biomeSource) ChunkGenerator
(BiomeSource biomeSource, Function<RegistryEntry<Biome>, GenerationSettings> generationSettingsGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStructureReferences
(StructureWorldAccess world, StructureAccessor structureAccessor, Chunk chunk) Finds all structures that the given chunk intersects, and adds references to their starting chunks to it.abstract void
buildSurface
(ChunkRegion region, StructureAccessor structures, NoiseConfig noiseConfig, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.abstract void
carve
(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carverStep) Generates caves for the given chunk.private static boolean
checkNotReferenced
(StructureAccessor structureAccessor, StructureStart start) createStructurePlacementCalculator
(RegistryWrapper<StructureSet> structureSetRegistry, NoiseConfig noiseConfig, long seed) void
generateFeatures
(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) private static BlockBox
getBlockBoxForChunk
(Chunk chunk) protected abstract com.mojang.serialization.MapCodec
<? extends ChunkGenerator> getCodec()
Optional
<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> abstract VerticalBlockSample
getColumnSample
(int x, int z, HeightLimitView world, NoiseConfig noiseConfig) Returns a sample of all the block states in a column for use in structure generation.abstract void
getDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) getEntitySpawnList
(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) getGenerationSettings
(RegistryEntry<Biome> biomeEntry) Deprecated.abstract int
getHeight
(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) Returns the raw noise height of a column for use in structure generation.int
getHeightInGround
(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) int
getHeightOnGround
(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) abstract int
abstract int
int
getSpawnHeight
(HeightLimitView world) private static int
getStructureReferences
(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, Structure structure) abstract int
void
private @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> locateConcentricRingsStructure
(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> locateRandomSpreadStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, int centerChunkX, int centerChunkZ, int radius, boolean skipReferencedStructures, long seed, RandomSpreadStructurePlacement placement) private static @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> locateStructure
(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, boolean skipReferencedStructures, StructurePlacement placement, ChunkPos pos) @Nullable com.mojang.datafixers.util.Pair
<BlockPos, RegistryEntry<Structure>> locateStructure
(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) Tries to find the closest structure of a given type near a given block.populateBiomes
(Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) abstract void
populateEntities
(ChunkRegion region) abstract CompletableFuture
<Chunk> populateNoise
(Executor executor, Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk) Generates the base shape of the chunk out of the basic block states as decided by this chunk generator's config.void
setStructureStarts
(DynamicRegistryManager registryManager, StructurePlacementCalculator placementCalculator, StructureAccessor structureAccessor, Chunk chunk, StructureTemplateManager structureTemplateManager) Determines which structures should start in the given chunk and creates their starting points.private boolean
trySetStructureStart
(StructureSet.WeightedEntry weightedEntry, StructureAccessor structureAccessor, DynamicRegistryManager dynamicRegistryManager, NoiseConfig noiseConfig, StructureTemplateManager structureManager, long seed, Chunk chunk, ChunkPos pos, ChunkSectionPos sectionPos)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/world/gen/chunk/ChunkGenerator;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_24746
Lnet/minecraft/class_2794;field_24746:Lcom/mojang/serialization/Codec;
official a
Ldua;a:Lcom/mojang/serialization/Codec;
-
biomeSource
- Mappings:
Namespace Name Mixin selector named biomeSource
Lnet/minecraft/world/gen/chunk/ChunkGenerator;biomeSource:Lnet/minecraft/world/biome/source/BiomeSource;
intermediary field_12761
Lnet/minecraft/class_2794;field_12761:Lnet/minecraft/class_1966;
official b
Ldua;b:Lddc;
-
indexedFeaturesListSupplier
- Mappings:
Namespace Name Mixin selector named indexedFeaturesListSupplier
Lnet/minecraft/world/gen/chunk/ChunkGenerator;indexedFeaturesListSupplier:Ljava/util/function/Supplier;
intermediary field_39412
Lnet/minecraft/class_2794;field_39412:Ljava/util/function/Supplier;
official c
Ldua;c:Ljava/util/function/Supplier;
-
generationSettingsGetter
- Mappings:
Namespace Name Mixin selector named generationSettingsGetter
Lnet/minecraft/world/gen/chunk/ChunkGenerator;generationSettingsGetter:Ljava/util/function/Function;
intermediary field_39413
Lnet/minecraft/class_2794;field_39413:Ljava/util/function/Function;
official d
Ldua;d:Ljava/util/function/Function;
-
-
Constructor Details
-
ChunkGenerator
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/ChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;)V
intermediary <init>
Lnet/minecraft/class_2794;<init>(Lnet/minecraft/class_1966;)V
official <init>
Ldua;<init>(Lddc;)V
-
ChunkGenerator
public ChunkGenerator(BiomeSource biomeSource, Function<RegistryEntry<Biome>, GenerationSettings> generationSettingsGetter) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/gen/chunk/ChunkGenerator;<init>(Lnet/minecraft/world/biome/source/BiomeSource;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_2794;<init>(Lnet/minecraft/class_1966;Ljava/util/function/Function;)V
official <init>
Ldua;<init>(Lddc;Ljava/util/function/Function;)V
-
-
Method Details
-
initializeIndexedFeaturesList
public void initializeIndexedFeaturesList()- Mappings:
Namespace Name Mixin selector named initializeIndexedFeaturesList
Lnet/minecraft/world/gen/chunk/ChunkGenerator;initializeIndexedFeaturesList()V
intermediary method_59825
Lnet/minecraft/class_2794;method_59825()V
official a
Ldua;a()V
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_28506
Lnet/minecraft/class_2794;method_28506()Lcom/mojang/serialization/MapCodec;
official b
Ldua;b()Lcom/mojang/serialization/MapCodec;
-
createStructurePlacementCalculator
public StructurePlacementCalculator createStructurePlacementCalculator(RegistryWrapper<StructureSet> structureSetRegistry, NoiseConfig noiseConfig, long seed) - Mappings:
Namespace Name Mixin selector named createStructurePlacementCalculator
Lnet/minecraft/world/gen/chunk/ChunkGenerator;createStructurePlacementCalculator(Lnet/minecraft/registry/RegistryWrapper;Lnet/minecraft/world/gen/noise/NoiseConfig;J)Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;
intermediary method_46696
Lnet/minecraft/class_2794;method_46696(Lnet/minecraft/class_7225;Lnet/minecraft/class_7138;J)Lnet/minecraft/class_7869;
official a
Ldua;a(Ljk;Ldyj;J)Ldub;
-
getCodecKey
public Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> getCodecKey()- Mappings:
Namespace Name Mixin selector named getCodecKey
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getCodecKey()Ljava/util/Optional;
intermediary method_39301
Lnet/minecraft/class_2794;method_39301()Ljava/util/Optional;
official c
Ldua;c()Ljava/util/Optional;
-
populateBiomes
public CompletableFuture<Chunk> populateBiomes(Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) - Mappings:
Namespace Name Mixin selector named populateBiomes
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateBiomes(Ljava/util/concurrent/Executor;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
intermediary method_38275
Lnet/minecraft/class_2794;method_38275(Ljava/util/concurrent/Executor;Lnet/minecraft/class_7138;Lnet/minecraft/class_6748;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)Ljava/util/concurrent/CompletableFuture;
official a
Ldua;a(Ljava/util/concurrent/Executor;Ldyj;Ldyx;Ldcs;Ldtz;)Ljava/util/concurrent/CompletableFuture;
-
carve
public abstract void carve(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess biomeAccess, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carverStep) Generates caves for the given chunk.- Mappings:
Namespace Name Mixin selector named carve
Lnet/minecraft/world/gen/chunk/ChunkGenerator;carve(Lnet/minecraft/world/ChunkRegion;JLnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/biome/source/BiomeAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/GenerationStep$Carver;)V
intermediary method_12108
Lnet/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;)V
official a
Ldua;a(Larm;JLdyj;Ldda;Ldcs;Ldtz;Ldxr$a;)V
-
locateStructure
@Nullable public @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<Structure>> locateStructure(ServerWorld world, RegistryEntryList<Structure> structures, BlockPos center, int radius, boolean skipReferencedStructures) 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_STARTS
phase 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 chunkskipReferencedStructures
- whether to exclude structures that were previously located (has positiveStructureStart.references
)- Returns:
null
if no structure could be found within the given search radius- Mappings:
Namespace Name Mixin selector named locateStructure
Lnet/minecraft/world/gen/chunk/ChunkGenerator;locateStructure(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/registry/entry/RegistryEntryList;Lnet/minecraft/util/math/BlockPos;IZ)Lcom/mojang/datafixers/util/Pair;
intermediary method_12103
Lnet/minecraft/class_2794;method_12103(Lnet/minecraft/class_3218;Lnet/minecraft/class_6885;Lnet/minecraft/class_2338;IZ)Lcom/mojang/datafixers/util/Pair;
official a
Ldua;a(Larf;Ljm;Liz;IZ)Lcom/mojang/datafixers/util/Pair;
-
locateConcentricRingsStructure
@Nullable private @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<Structure>> locateConcentricRingsStructure(Set<RegistryEntry<Structure>> structures, ServerWorld world, StructureAccessor structureAccessor, BlockPos center, boolean skipReferencedStructures, ConcentricRingsStructurePlacement placement) - Mappings:
Namespace Name Mixin selector named locateConcentricRingsStructure
Lnet/minecraft/world/gen/chunk/ChunkGenerator;locateConcentricRingsStructure(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;
intermediary method_40148
Lnet/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;
official a
Ldua;a(Ljava/util/Set;Larf;Ldcs;Liz;ZLejf;)Lcom/mojang/datafixers/util/Pair;
-
locateRandomSpreadStructure
@Nullable private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<Structure>> locateRandomSpreadStructure(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, int centerChunkX, int centerChunkZ, int radius, boolean skipReferencedStructures, long seed, RandomSpreadStructurePlacement placement) - Mappings:
Namespace Name Mixin selector named locateRandomSpreadStructure
Lnet/minecraft/world/gen/chunk/ChunkGenerator;locateRandomSpreadStructure(Ljava/util/Set;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/gen/StructureAccessor;IIIZJLnet/minecraft/world/gen/chunk/placement/RandomSpreadStructurePlacement;)Lcom/mojang/datafixers/util/Pair;
intermediary method_40146
Lnet/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;
official a
Ldua;a(Ljava/util/Set;Ldcc;Ldcs;IIIZJLejg;)Lcom/mojang/datafixers/util/Pair;
-
locateStructure
@Nullable private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<Structure>> locateStructure(Set<RegistryEntry<Structure>> structures, WorldView world, StructureAccessor structureAccessor, boolean skipReferencedStructures, StructurePlacement placement, ChunkPos pos) - Mappings:
Namespace Name Mixin selector named locateStructure
Lnet/minecraft/world/gen/chunk/ChunkGenerator;locateStructure(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;
intermediary method_41522
Lnet/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;
official a
Ldua;a(Ljava/util/Set;Ldcc;Ldcs;ZLeji;Ldbg;)Lcom/mojang/datafixers/util/Pair;
-
checkNotReferenced
private static boolean checkNotReferenced(StructureAccessor structureAccessor, StructureStart start) - Mappings:
Namespace Name Mixin selector named checkNotReferenced
Lnet/minecraft/world/gen/chunk/ChunkGenerator;checkNotReferenced(Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/structure/StructureStart;)Z
intermediary method_41521
Lnet/minecraft/class_2794;method_41521(Lnet/minecraft/class_5138;Lnet/minecraft/class_3449;)Z
official a
Ldua;a(Ldcs;Leit;)Z
-
generateFeatures
public void generateFeatures(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) - Mappings:
Namespace Name Mixin selector named generateFeatures
Lnet/minecraft/world/gen/chunk/ChunkGenerator;generateFeatures(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/StructureAccessor;)V
intermediary method_12102
Lnet/minecraft/class_2794;method_12102(Lnet/minecraft/class_5281;Lnet/minecraft/class_2791;Lnet/minecraft/class_5138;)V
official a
Ldua;a(Ldcu;Ldtz;Ldcs;)V
-
getBlockBoxForChunk
- Mappings:
Namespace Name Mixin selector named getBlockBoxForChunk
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getBlockBoxForChunk(Lnet/minecraft/world/chunk/Chunk;)Lnet/minecraft/util/math/BlockBox;
intermediary method_39462
Lnet/minecraft/class_2794;method_39462(Lnet/minecraft/class_2791;)Lnet/minecraft/class_3341;
official a
Ldua;a(Ldtz;)Leid;
-
buildSurface
public abstract void buildSurface(ChunkRegion region, StructureAccessor structures, NoiseConfig noiseConfig, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.- Mappings:
Namespace Name Mixin selector named buildSurface
Lnet/minecraft/world/gen/chunk/ChunkGenerator;buildSurface(Lnet/minecraft/world/ChunkRegion;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_12110
Lnet/minecraft/class_2794;method_12110(Lnet/minecraft/class_3233;Lnet/minecraft/class_5138;Lnet/minecraft/class_7138;Lnet/minecraft/class_2791;)V
official a
Ldua;a(Larm;Ldcs;Ldyj;Ldtz;)V
-
populateEntities
- Mappings:
Namespace Name Mixin selector named populateEntities
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateEntities(Lnet/minecraft/world/ChunkRegion;)V
intermediary method_12107
Lnet/minecraft/class_2794;method_12107(Lnet/minecraft/class_3233;)V
official a
Ldua;a(Larm;)V
-
getSpawnHeight
- Mappings:
Namespace Name Mixin selector named getSpawnHeight
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSpawnHeight(Lnet/minecraft/world/HeightLimitView;)I
intermediary method_12100
Lnet/minecraft/class_2794;method_12100(Lnet/minecraft/class_5539;)I
official a
Ldua;a(Ldcb;)I
-
getBiomeSource
- Mappings:
Namespace Name Mixin selector named getBiomeSource
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getBiomeSource()Lnet/minecraft/world/biome/source/BiomeSource;
intermediary method_12098
Lnet/minecraft/class_2794;method_12098()Lnet/minecraft/class_1966;
official d
Ldua;d()Lddc;
-
getWorldHeight
public abstract int getWorldHeight()- Mappings:
Namespace Name Mixin selector named getWorldHeight
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getWorldHeight()I
intermediary method_12104
Lnet/minecraft/class_2794;method_12104()I
official e
Ldua;e()I
-
getEntitySpawnList
public Pool<SpawnSettings.SpawnEntry> getEntitySpawnList(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) - Mappings:
Namespace Name Mixin selector named getEntitySpawnList
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getEntitySpawnList(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/collection/Pool;
intermediary method_12113
Lnet/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;
official a
Ldua;a(Lji;Ldcs;Lbtt;Liz;)Lbpj;
-
setStructureStarts
public void setStructureStarts(DynamicRegistryManager registryManager, StructurePlacementCalculator placementCalculator, StructureAccessor structureAccessor, Chunk chunk, StructureTemplateManager structureTemplateManager) Determines which structures should start in the given chunk and creates their starting points.- Mappings:
Namespace Name Mixin selector named setStructureStarts
Lnet/minecraft/world/gen/chunk/ChunkGenerator;setStructureStarts(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/structure/StructureTemplateManager;)V
intermediary method_16129
Lnet/minecraft/class_2794;method_16129(Lnet/minecraft/class_5455;Lnet/minecraft/class_7869;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_3485;)V
official a
Ldua;a(Ljw;Ldub;Ldcs;Ldtz;Lemm;)V
-
trySetStructureStart
private boolean trySetStructureStart(StructureSet.WeightedEntry weightedEntry, StructureAccessor structureAccessor, DynamicRegistryManager dynamicRegistryManager, NoiseConfig noiseConfig, StructureTemplateManager structureManager, long seed, Chunk chunk, ChunkPos pos, ChunkSectionPos sectionPos) - Mappings:
Namespace Name Mixin selector named trySetStructureStart
Lnet/minecraft/world/gen/chunk/ChunkGenerator;trySetStructureStart(Lnet/minecraft/structure/StructureSet$WeightedEntry;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/structure/StructureTemplateManager;JLnet/minecraft/world/chunk/Chunk;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/ChunkSectionPos;)Z
intermediary method_41044
Lnet/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;)Z
official a
Ldua;a(Leir$a;Ldcs;Ljw;Ldyj;Lemm;JLdtz;Ldbg;Lkb;)Z
-
getStructureReferences
private static int getStructureReferences(StructureAccessor structureAccessor, Chunk chunk, ChunkSectionPos sectionPos, Structure structure) - Mappings:
Namespace Name Mixin selector named getStructureReferences
Lnet/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/structure/Structure;)I
intermediary method_38264
Lnet/minecraft/class_2794;method_38264(Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;Lnet/minecraft/class_4076;Lnet/minecraft/class_3195;)I
official a
Ldua;a(Ldcs;Ldtz;Lkb;Leil;)I
-
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 named addStructureReferences
Lnet/minecraft/world/gen/chunk/ChunkGenerator;addStructureReferences(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)V
intermediary method_16130
Lnet/minecraft/class_2794;method_16130(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
official a
Ldua;a(Ldcu;Ldcs;Ldtz;)V
-
populateNoise
public abstract CompletableFuture<Chunk> populateNoise(Executor executor, Blender blender, NoiseConfig noiseConfig, StructureAccessor structureAccessor, 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 named populateNoise
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateNoise(Ljava/util/concurrent/Executor;Lnet/minecraft/world/gen/chunk/Blender;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/world/chunk/Chunk;)Ljava/util/concurrent/CompletableFuture;
intermediary method_12088
Lnet/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;
official a
Ldua;a(Ljava/util/concurrent/Executor;Ldyx;Ldyj;Ldcs;Ldtz;)Ljava/util/concurrent/CompletableFuture;
-
getSeaLevel
public abstract int getSeaLevel()- Mappings:
Namespace Name Mixin selector named getSeaLevel
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
intermediary method_16398
Lnet/minecraft/class_2794;method_16398()I
official f
Ldua;f()I
-
getMinimumY
public abstract int getMinimumY()- Mappings:
Namespace Name Mixin selector named getMinimumY
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getMinimumY()I
intermediary method_33730
Lnet/minecraft/class_2794;method_33730()I
official g
Ldua;g()I
-
getHeight
public abstract int getHeight(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) Returns the raw noise height of a column for use in structure generation.- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getHeight(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;)I
intermediary method_16397
Lnet/minecraft/class_2794;method_16397(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
official a
Ldua;a(IILdxv$a;Ldcb;Ldyj;)I
-
getColumnSample
public abstract VerticalBlockSample getColumnSample(int x, int z, HeightLimitView world, NoiseConfig noiseConfig) Returns a sample of all the block states in a column for use in structure generation.- Mappings:
Namespace Name Mixin selector named getColumnSample
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getColumnSample(IILnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;)Lnet/minecraft/world/gen/chunk/VerticalBlockSample;
intermediary method_26261
Lnet/minecraft/class_2794;method_26261(IILnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Lnet/minecraft/class_4966;
official a
Ldua;a(IILdcb;Ldyj;)Ldcl;
-
getHeightOnGround
public int getHeightOnGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector named getHeightOnGround
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getHeightOnGround(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;)I
intermediary method_20402
Lnet/minecraft/class_2794;method_20402(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
official b
Ldua;b(IILdxv$a;Ldcb;Ldyj;)I
-
getHeightInGround
public int getHeightInGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector named getHeightInGround
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getHeightInGround(IILnet/minecraft/world/Heightmap$Type;Lnet/minecraft/world/HeightLimitView;Lnet/minecraft/world/gen/noise/NoiseConfig;)I
intermediary method_18028
Lnet/minecraft/class_2794;method_18028(IILnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_5539;Lnet/minecraft/class_7138;)I
official c
Ldua;c(IILdxv$a;Ldcb;Ldyj;)I
-
getDebugHudText
- Mappings:
Namespace Name Mixin selector named getDebugHudText
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getDebugHudText(Ljava/util/List;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_40450
Lnet/minecraft/class_2794;method_40450(Ljava/util/List;Lnet/minecraft/class_7138;Lnet/minecraft/class_2338;)V
official a
Ldua;a(Ljava/util/List;Ldyj;Liz;)V
-
getGenerationSettings
Deprecated.- Mappings:
Namespace Name Mixin selector named getGenerationSettings
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getGenerationSettings(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/biome/GenerationSettings;
intermediary method_44216
Lnet/minecraft/class_2794;method_44216(Lnet/minecraft/class_6880;)Lnet/minecraft/class_5485;
official a
Ldua;a(Lji;)Ldcz;
-