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 cwn
intermediary net/minecraft/class_2794
named net/minecraft/world/gen/chunk/ChunkGenerator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ChunkGenerator>
private final Map<ConcentricRingsStructurePlacement,
CompletableFuture<List<ChunkPos>>> private final Supplier<List<PlacedFeatureIndexer.IndexedFeatures>>
private final Function<RegistryEntry<Biome>,
GenerationSettings> private boolean
private static final org.slf4j.Logger
protected final BiomeSource
Used to control the population step without replacing the actual biome that comes from the originalinvalid @link
#biomeSource
protected final Optional<RegistryEntryList<StructureSet>>
private final Map<StructureType,
List<StructurePlacement>> protected final Registry<StructureSet>
-
Constructor Summary
ConstructorDescriptionChunkGenerator
(Registry<StructureSet> structureSetRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, BiomeSource biomeSource) ChunkGenerator
(Registry<StructureSet> structureSetRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, BiomeSource populationSource, Function<RegistryEntry<Biome>, GenerationSettings> function) -
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 world, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carverStep) Generates caves for the given chunk.private void
computeStructurePlacements
(NoiseConfig noiseConfig) protected static <T extends ChunkGenerator>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Registry<StructureSet>> createStructureSetRegistryGetter
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) private CompletableFuture<List<ChunkPos>>
generateConcentricRingPositions
(RegistryEntry<StructureSet> structureSet, NoiseConfig noiseConfig, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) void
generateFeatures
(StructureWorldAccess world, Chunk chunk, StructureAccessor structureAccessor) private static BlockBox
getBlockBoxForChunk
(Chunk chunk) protected abstract com.mojang.serialization.Codec<? extends ChunkGenerator>
getCodec()
Optional<RegistryKey<com.mojang.serialization.Codec<? 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.getConcentricRingsStartChunks
(ConcentricRingsStructurePlacement structurePlacement, NoiseConfig noiseConfig) abstract void
getDebugHudText
(List<String> text, NoiseConfig noiseConfig, BlockPos pos) getEntitySpawnList
(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) 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, StructureType structure) abstract int
@Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<StructureType>> locateStructure
(ServerWorld world, RegistryEntryList<StructureType> structures, 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<StructureType>> method_40146
(Set<RegistryEntry<StructureType>> 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<StructureType>> method_40148
(Set<RegistryEntry<StructureType>> set, ServerWorld serverWorld, StructureAccessor structureAccessor, BlockPos blockPos, boolean bool, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) private boolean
method_41044
(StructureSet.WeightedEntry weightedEntry, StructureAccessor structureAccessor, DynamicRegistryManager dynamicRegistryManager, NoiseConfig noiseConfig, StructureManager structureManager, long long2, Chunk chunk, ChunkPos chunkPos, ChunkSectionPos chunkSectionPos) private List<StructurePlacement>
method_41055
(RegistryEntry<StructureType> registryEntry, NoiseConfig noiseConfig) void
method_41058
(NoiseConfig noiseConfig) private static boolean
method_41521
(StructureAccessor structureAccessor, StructureStart structureStart) private static @Nullable com.mojang.datafixers.util.Pair<BlockPos,
RegistryEntry<StructureType>> method_41522
(Set<RegistryEntry<StructureType>> set, WorldView worldView, StructureAccessor structureAccessor, boolean bool, StructurePlacement structurePlacement, ChunkPos chunkPos) method_44216
(RegistryEntry<Biome> registryEntry) Deprecated.populateBiomes
(Registry<Biome> biomeRegistry, 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, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk, StructureManager structureManager, long seed) Determines which structures should start in the given chunk and creates their starting points.boolean
shouldStructureGenerateInRange
(RegistryEntry<StructureSet> structureSet, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ, int chunkRange)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official e
Lcwn;e:Lorg/slf4j/Logger;
intermediary field_37254
Lnet/minecraft/class_2794;field_37254:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/world/gen/chunk/ChunkGenerator;LOGGER:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a:Lcom/mojang/serialization/Codec;
intermediary field_24746
Lnet/minecraft/class_2794;field_24746:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/chunk/ChunkGenerator;CODEC:Lcom/mojang/serialization/Codec;
-
structureSetRegistry
- Mappings:
Namespace Name Mixin selector official b
Lcwn;b:Lhm;
intermediary field_37053
Lnet/minecraft/class_2794;field_37053:Lnet/minecraft/class_2378;
named structureSetRegistry
Lnet/minecraft/world/gen/chunk/ChunkGenerator;structureSetRegistry:Lnet/minecraft/util/registry/Registry;
-
populationSource
Used to control the population step without replacing the actual biome that comes from the originalinvalid @link
#biomeSource
This is used by
FlatChunkGenerator
to overwrite biome properties like whether lakes generate, while preserving the original biome ID.- Mappings:
Namespace Name Mixin selector official c
Lcwn;c:Lcha;
intermediary field_12761
Lnet/minecraft/class_2794;field_12761:Lnet/minecraft/class_1966;
named populationSource
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populationSource:Lnet/minecraft/world/biome/source/BiomeSource;
-
field_39412
- Mappings:
Namespace Name Mixin selector official f
Lcwn;f:Ljava/util/function/Supplier;
intermediary field_39412
Lnet/minecraft/class_2794;field_39412:Ljava/util/function/Supplier;
named field_39412
Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_39412:Ljava/util/function/Supplier;
-
structureOverrides
- Mappings:
Namespace Name Mixin selector official d
Lcwn;d:Ljava/util/Optional;
intermediary field_37054
Lnet/minecraft/class_2794;field_37054:Ljava/util/Optional;
named structureOverrides
Lnet/minecraft/world/gen/chunk/ChunkGenerator;structureOverrides:Ljava/util/Optional;
-
field_39413
- Mappings:
Namespace Name Mixin selector official g
Lcwn;g:Ljava/util/function/Function;
intermediary field_39413
Lnet/minecraft/class_2794;field_39413:Ljava/util/function/Function;
named field_39413
Lnet/minecraft/world/gen/chunk/ChunkGenerator;field_39413:Ljava/util/function/Function;
-
structurePlacements
- Mappings:
Namespace Name Mixin selector official h
Lcwn;h:Ljava/util/Map;
intermediary field_37055
Lnet/minecraft/class_2794;field_37055:Ljava/util/Map;
named structurePlacements
Lnet/minecraft/world/gen/chunk/ChunkGenerator;structurePlacements:Ljava/util/Map;
-
concentricRingPositions
private final Map<ConcentricRingsStructurePlacement,CompletableFuture<List<ChunkPos>>> concentricRingPositions- Mappings:
Namespace Name Mixin selector official i
Lcwn;i:Ljava/util/Map;
intermediary field_36405
Lnet/minecraft/class_2794;field_36405:Ljava/util/Map;
named concentricRingPositions
Lnet/minecraft/world/gen/chunk/ChunkGenerator;concentricRingPositions:Ljava/util/Map;
-
hasComputedStructurePlacements
private boolean hasComputedStructurePlacements- Mappings:
Namespace Name Mixin selector official j
Lcwn;j:Z
intermediary field_37056
Lnet/minecraft/class_2794;field_37056:Z
named hasComputedStructurePlacements
Lnet/minecraft/world/gen/chunk/ChunkGenerator;hasComputedStructurePlacements:Z
-
-
Constructor Details
-
ChunkGenerator
public ChunkGenerator(Registry<StructureSet> structureSetRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, BiomeSource biomeSource) - Mappings:
Namespace Name Mixin selector official <init>
Lcwn;<init>(Lhm;Ljava/util/Optional;Lcha;)V
intermediary <init>
Lnet/minecraft/class_2794;<init>(Lnet/minecraft/class_2378;Ljava/util/Optional;Lnet/minecraft/class_1966;)V
named <init>
Lnet/minecraft/world/gen/chunk/ChunkGenerator;<init>(Lnet/minecraft/util/registry/Registry;Ljava/util/Optional;Lnet/minecraft/world/biome/source/BiomeSource;)V
-
ChunkGenerator
public ChunkGenerator(Registry<StructureSet> structureSetRegistry, Optional<RegistryEntryList<StructureSet>> structureOverrides, BiomeSource populationSource, Function<RegistryEntry<Biome>, GenerationSettings> function) - Mappings:
Namespace Name Mixin selector official <init>
Lcwn;<init>(Lhm;Ljava/util/Optional;Lcha;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_2794;<init>(Lnet/minecraft/class_2378;Ljava/util/Optional;Lnet/minecraft/class_1966;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/world/gen/chunk/ChunkGenerator;<init>(Lnet/minecraft/util/registry/Registry;Ljava/util/Optional;Lnet/minecraft/world/biome/source/BiomeSource;Ljava/util/function/Function;)V
-
-
Method Details
-
createStructureSetRegistryGetter
protected static <T extends ChunkGenerator> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Registry<StructureSet>> createStructureSetRegistryGetter(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
intermediary method_41042
Lnet/minecraft/class_2794;method_41042(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
named createStructureSetRegistryGetter
Lnet/minecraft/world/gen/chunk/ChunkGenerator;createStructureSetRegistryGetter(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
-
streamStructureSets
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a()Ljava/util/stream/Stream;
intermediary method_41039
Lnet/minecraft/class_2794;method_41039()Ljava/util/stream/Stream;
named streamStructureSets
Lnet/minecraft/world/gen/chunk/ChunkGenerator;streamStructureSets()Ljava/util/stream/Stream;
-
computeStructurePlacements
- Mappings:
Namespace Name Mixin selector official b
Lcwn;b(Ldah;)V
intermediary method_41057
Lnet/minecraft/class_2794;method_41057(Lnet/minecraft/class_7138;)V
named computeStructurePlacements
Lnet/minecraft/world/gen/chunk/ChunkGenerator;computeStructurePlacements(Lnet/minecraft/world/gen/noise/NoiseConfig;)V
-
generateConcentricRingPositions
private CompletableFuture<List<ChunkPos>> generateConcentricRingPositions(RegistryEntry<StructureSet> structureSet, NoiseConfig noiseConfig, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lhc;Ldah;Ldkx;)Ljava/util/concurrent/CompletableFuture;
intermediary method_28509
Lnet/minecraft/class_2794;method_28509(Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;Lnet/minecraft/class_6871;)Ljava/util/concurrent/CompletableFuture;
named generateConcentricRingPositions
Lnet/minecraft/world/gen/chunk/ChunkGenerator;generateConcentricRingPositions(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;)Ljava/util/concurrent/CompletableFuture;
-
getCodec
- Mappings:
Namespace Name Mixin selector official b
Lcwn;b()Lcom/mojang/serialization/Codec;
intermediary method_28506
Lnet/minecraft/class_2794;method_28506()Lcom/mojang/serialization/Codec;
named getCodec
Lnet/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 c
Lcwn;c()Ljava/util/Optional;
intermediary method_39301
Lnet/minecraft/class_2794;method_39301()Ljava/util/Optional;
named getCodecKey
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getCodecKey()Ljava/util/Optional;
-
populateBiomes
public CompletableFuture<Chunk> populateBiomes(Registry<Biome> biomeRegistry, Executor executor, NoiseConfig noiseConfig, Blender blender, StructureAccessor structureAccessor, Chunk chunk) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lhm;Ljava/util/concurrent/Executor;Ldah;Ldat;Lcgr;Lcwm;)Ljava/util/concurrent/CompletableFuture;
intermediary method_38275
Lnet/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 populateBiomes
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateBiomes(Lnet/minecraft/util/registry/Registry;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;
-
carve
public abstract void carve(ChunkRegion chunkRegion, long seed, NoiseConfig noiseConfig, BiomeAccess world, StructureAccessor structureAccessor, Chunk chunk, GenerationStep.Carver carverStep) Generates caves for the given chunk.- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lafv;JLdah;Lcgy;Lcgr;Lcwm;Lczp$a;)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
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
-
locateStructure
@Nullable public @Nullable com.mojang.datafixers.util.Pair<BlockPos,RegistryEntry<StructureType>> locateStructure(ServerWorld world, RegistryEntryList<StructureType> structures, 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_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 chunkskipExistingChunks
- whether only structures that are not referenced by generated chunks (chunks past the STRUCTURE_STARTS stage) are returned, excluding strongholds- Returns:
null
if no structure could be found within the given search radius- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lafo;Lhe;Lgt;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;
named locateStructure
Lnet/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<StructureType>> method_40148(Set<RegistryEntry<StructureType>> set, ServerWorld serverWorld, StructureAccessor structureAccessor, BlockPos blockPos, boolean bool, ConcentricRingsStructurePlacement concentricRingsStructurePlacement) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ljava/util/Set;Lafo;Lcgr;Lgt;ZLdkx;)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;
named method_40148
Lnet/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<StructureType>> method_40146(Set<RegistryEntry<StructureType>> set, WorldView worldView, StructureAccessor structureAccessor, int int2, int int3, int int4, boolean bool, long long2, RandomSpreadStructurePlacement randomSpreadStructurePlacement) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ljava/util/Set;Lcgd;Lcgr;IIIZJLdky;)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;
named method_40146
Lnet/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<StructureType>> method_41522(Set<RegistryEntry<StructureType>> set, WorldView worldView, StructureAccessor structureAccessor, boolean bool, StructurePlacement structurePlacement, ChunkPos chunkPos) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ljava/util/Set;Lcgd;Lcgr;ZLdla;Lcfh;)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;
named method_41522
Lnet/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 a
Lcwn;a(Lcgr;Ldkl;)Z
intermediary method_41521
Lnet/minecraft/class_2794;method_41521(Lnet/minecraft/class_5138;Lnet/minecraft/class_3449;)Z
named method_41521
Lnet/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 a
Lcwn;a(Lcgs;Lcwm;Lcgr;)V
intermediary method_12102
Lnet/minecraft/class_2794;method_12102(Lnet/minecraft/class_5281;Lnet/minecraft/class_2791;Lnet/minecraft/class_5138;)V
named generateFeatures
Lnet/minecraft/world/gen/chunk/ChunkGenerator;generateFeatures(Lnet/minecraft/world/StructureWorldAccess;Lnet/minecraft/world/chunk/Chunk;Lnet/minecraft/world/gen/StructureAccessor;)V
-
shouldStructureGenerateInRange
public boolean shouldStructureGenerateInRange(RegistryEntry<StructureSet> structureSet, NoiseConfig noiseConfig, long seed, int chunkX, int chunkZ, int chunkRange) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lhc;Ldah;JIII)Z
intermediary method_41053
Lnet/minecraft/class_2794;method_41053(Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;JIII)Z
named shouldStructureGenerateInRange
Lnet/minecraft/world/gen/chunk/ChunkGenerator;shouldStructureGenerateInRange(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/world/gen/noise/NoiseConfig;JIII)Z
-
getBlockBoxForChunk
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lcwm;)Ldjv;
intermediary method_39462
Lnet/minecraft/class_2794;method_39462(Lnet/minecraft/class_2791;)Lnet/minecraft/class_3341;
named getBlockBoxForChunk
Lnet/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, NoiseConfig noiseConfig, Chunk chunk) Places the surface blocks of the biomes after the noise has been generated.- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lafv;Lcgr;Ldah;Lcwm;)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
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
-
populateEntities
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lafv;)V
intermediary method_12107
Lnet/minecraft/class_2794;method_12107(Lnet/minecraft/class_3233;)V
named populateEntities
Lnet/minecraft/world/gen/chunk/ChunkGenerator;populateEntities(Lnet/minecraft/world/ChunkRegion;)V
-
getSpawnHeight
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lcgc;)I
intermediary method_12100
Lnet/minecraft/class_2794;method_12100(Lnet/minecraft/class_5539;)I
named getSpawnHeight
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSpawnHeight(Lnet/minecraft/world/HeightLimitView;)I
-
getBiomeSource
- Mappings:
Namespace Name Mixin selector official d
Lcwn;d()Lcha;
intermediary method_12098
Lnet/minecraft/class_2794;method_12098()Lnet/minecraft/class_1966;
named getBiomeSource
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getBiomeSource()Lnet/minecraft/world/biome/source/BiomeSource;
-
getWorldHeight
public abstract int getWorldHeight()- Mappings:
Namespace Name Mixin selector official e
Lcwn;e()I
intermediary method_12104
Lnet/minecraft/class_2794;method_12104()I
named getWorldHeight
Lnet/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 a
Lcwn;a(Lhc;Lcgr;Lbbi;Lgt;)Laya;
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;
named getEntitySpawnList
Lnet/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, NoiseConfig noiseConfig, StructureAccessor structureAccessor, Chunk chunk, StructureManager structureManager, long seed) Determines which structures should start in the given chunk and creates their starting points.- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lhn;Ldah;Lcgr;Lcwm;Ldnw;J)V
intermediary method_16129
Lnet/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)V
named setStructureStarts
Lnet/minecraft/world/gen/chunk/ChunkGenerator;setStructureStarts(Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/noise/NoiseConfig;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, NoiseConfig noiseConfig, StructureManager structureManager, long long2, Chunk chunk, ChunkPos chunkPos, ChunkSectionPos chunkSectionPos) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ldkj$a;Lcgr;Lhn;Ldah;Ldnw;JLcwm;Lcfh;Lhq;)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
named method_41044
Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41044(Lnet/minecraft/structure/StructureSet$WeightedEntry;Lnet/minecraft/world/gen/StructureAccessor;Lnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/noise/NoiseConfig;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, StructureType structure) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lcgr;Lcwm;Lhq;Ldkd;)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
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/StructureType;)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 official a
Lcwn;a(Lcgs;Lcgr;Lcwm;)V
intermediary method_16130
Lnet/minecraft/class_2794;method_16130(Lnet/minecraft/class_5281;Lnet/minecraft/class_5138;Lnet/minecraft/class_2791;)V
named addStructureReferences
Lnet/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, 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 official a
Lcwn;a(Ljava/util/concurrent/Executor;Ldat;Ldah;Lcgr;Lcwm;)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;
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;
-
getSeaLevel
public abstract int getSeaLevel()- Mappings:
Namespace Name Mixin selector official f
Lcwn;f()I
intermediary method_16398
Lnet/minecraft/class_2794;method_16398()I
named getSeaLevel
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getSeaLevel()I
-
getMinimumY
public abstract int getMinimumY()- Mappings:
Namespace Name Mixin selector official g
Lcwn;g()I
intermediary method_33730
Lnet/minecraft/class_2794;method_33730()I
named getMinimumY
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getMinimumY()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 official a
Lcwn;a(IILczt$a;Lcgc;Ldah;)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
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
-
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 official a
Lcwn;a(IILcgc;Ldah;)Lcgm;
intermediary method_26261
Lnet/minecraft/class_2794;method_26261(IILnet/minecraft/class_5539;Lnet/minecraft/class_7138;)Lnet/minecraft/class_4966;
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;
-
getHeightOnGround
public int getHeightOnGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector official b
Lcwn;b(IILczt$a;Lcgc;Ldah;)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
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
-
getHeightInGround
public int getHeightInGround(int x, int z, Heightmap.Type heightmap, HeightLimitView world, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector official c
Lcwn;c(IILczt$a;Lcgc;Ldah;)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
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
-
method_41058
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ldah;)V
intermediary method_41058
Lnet/minecraft/class_2794;method_41058(Lnet/minecraft/class_7138;)V
named method_41058
Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41058(Lnet/minecraft/world/gen/noise/NoiseConfig;)V
-
getConcentricRingsStartChunks
@Nullable public @Nullable List<ChunkPos> getConcentricRingsStartChunks(ConcentricRingsStructurePlacement structurePlacement, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ldkx;Ldah;)Ljava/util/List;
intermediary method_40147
Lnet/minecraft/class_2794;method_40147(Lnet/minecraft/class_6871;Lnet/minecraft/class_7138;)Ljava/util/List;
named getConcentricRingsStartChunks
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getConcentricRingsStartChunks(Lnet/minecraft/world/gen/chunk/placement/ConcentricRingsStructurePlacement;Lnet/minecraft/world/gen/noise/NoiseConfig;)Ljava/util/List;
-
method_41055
private List<StructurePlacement> method_41055(RegistryEntry<StructureType> registryEntry, NoiseConfig noiseConfig) - Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lhc;Ldah;)Ljava/util/List;
intermediary method_41055
Lnet/minecraft/class_2794;method_41055(Lnet/minecraft/class_6880;Lnet/minecraft/class_7138;)Ljava/util/List;
named method_41055
Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_41055(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/world/gen/noise/NoiseConfig;)Ljava/util/List;
-
getDebugHudText
- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Ljava/util/List;Ldah;Lgt;)V
intermediary method_40450
Lnet/minecraft/class_2794;method_40450(Ljava/util/List;Lnet/minecraft/class_7138;Lnet/minecraft/class_2338;)V
named getDebugHudText
Lnet/minecraft/world/gen/chunk/ChunkGenerator;getDebugHudText(Ljava/util/List;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/util/math/BlockPos;)V
-
method_44216
Deprecated.- Mappings:
Namespace Name Mixin selector official a
Lcwn;a(Lhc;)Lcgx;
intermediary method_44216
Lnet/minecraft/class_2794;method_44216(Lnet/minecraft/class_6880;)Lnet/minecraft/class_5485;
named method_44216
Lnet/minecraft/world/gen/chunk/ChunkGenerator;method_44216(Lnet/minecraft/util/registry/RegistryEntry;)Lnet/minecraft/world/biome/GenerationSettings;
-