Package net.minecraft.world.level.chunk
Class ChunkGeneratorStructureState
java.lang.Object
net.minecraft.world.level.chunk.ChunkGeneratorStructureState
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiomeSource
private final long
private boolean
private final long
private static final org.slf4j.Logger
private final Map<Structure,
List<StructurePlacement>> private final List<Holder<StructureSet>>
private final RandomState
private final Map<ConcentricRingsStructurePlacement,
CompletableFuture<List<ChunkPos>>> -
Constructor Summary
ModifierConstructorDescriptionprivate
ChunkGeneratorStructureState
(RandomState p_256401_, BiomeSource p_255742_, long p_256615_, long p_255979_, List<Holder<StructureSet>> p_256237_) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkGeneratorStructureState
createForFlat
(RandomState p_256240_, long p_256404_, BiomeSource p_256274_, Stream<Holder<StructureSet>> p_256348_) static ChunkGeneratorStructureState
createForNormal
(RandomState p_256197_, long p_255806_, BiomeSource p_256653_, HolderLookup<StructureSet> p_256659_) void
private void
private CompletableFuture<List<ChunkPos>>
generateRingPositions
(Holder<StructureSet> p_255966_, ConcentricRingsStructurePlacement p_255744_) long
getPlacementsForStructure
(Holder<Structure> p_256494_) private static boolean
hasBiomesForStructureSet
(StructureSet p_255766_, BiomeSource p_256424_) boolean
hasStructureChunkInRange
(Holder<StructureSet> p_256489_, int p_256593_, int p_256115_, int p_256619_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
randomState
-
biomeSource
-
levelSeed
private final long levelSeed -
concentricRingsSeed
private final long concentricRingsSeed -
placementsForStructure
-
ringPositions
private final Map<ConcentricRingsStructurePlacement,CompletableFuture<List<ChunkPos>>> ringPositions -
hasGeneratedPositions
private boolean hasGeneratedPositions -
possibleStructureSets
-
-
Constructor Details
-
ChunkGeneratorStructureState
private ChunkGeneratorStructureState(RandomState p_256401_, BiomeSource p_255742_, long p_256615_, long p_255979_, List<Holder<StructureSet>> p_256237_)
-
-
Method Details
-
createForFlat
public static ChunkGeneratorStructureState createForFlat(RandomState p_256240_, long p_256404_, BiomeSource p_256274_, Stream<Holder<StructureSet>> p_256348_) -
createForNormal
public static ChunkGeneratorStructureState createForNormal(RandomState p_256197_, long p_255806_, BiomeSource p_256653_, HolderLookup<StructureSet> p_256659_) -
hasBiomesForStructureSet
-
possibleStructureSets
-
generatePositions
private void generatePositions() -
generateRingPositions
private CompletableFuture<List<ChunkPos>> generateRingPositions(Holder<StructureSet> p_255966_, ConcentricRingsStructurePlacement p_255744_) -
ensureStructuresGenerated
public void ensureStructuresGenerated() -
getRingPositionsFor
-
getPlacementsForStructure
-
randomState
-
hasStructureChunkInRange
public boolean hasStructureChunkInRange(Holder<StructureSet> p_256489_, int p_256593_, int p_256115_, int p_256619_) -
getLevelSeed
public long getLevelSeed()
-