Skip to main content

Module generator

Module generator 

Source
Expand description

Structure placement/selection engine. Shared structure placement/selection engine.

StructsΒ§

FixedStructureBiomeProvider
Fixed-biome provider used by flat generation settings.
RingPlacementInput πŸ”’
RingPositionCache πŸ”’
RingPositionCacheEntry πŸ”’
RingPositionCacheKey πŸ”’
StructureGenerator
Runtime equivalent of vanilla’s ChunkGeneratorStructureState plus structure implementation dispatch.
StructureGeneratorAssets
Runtime assets required by structure generation beyond the structure-set list.
StructureLocateCandidate
Candidate chunk and locate position for a structure search.
StructureLocatePlacement
A structure placement that can produce the requested structure.
StructureLocatePlan
Search plan for vanilla /locate structure queries.

ConstantsΒ§

VANILLA_FLAT_RING_POSITION_SEED πŸ”’

TraitsΒ§

StructureBiomeProvider
Biome operations needed while building ChunkGeneratorStructureState.

FunctionsΒ§

load_ring_position_cache πŸ”’
ring_positions_for_placement πŸ”’
squared_distance
Squared block distance using vanilla’s three-dimensional BlockPos.distSqr.
validate_structure_assets πŸ”’
validate_structure_sets πŸ”’
vanilla_structure_impls πŸ”’