Skip to main content

Module placement

Module placement 

Source
Expand description

Structure placement. Determines which chunks are valid for structure generation — vanilla’s StructurePlacement hierarchy.

Structs§

ExclusionZone
Vanilla’s StructurePlacement.ExclusionZone.
StructurePlacement
Structure placement configuration.
StructureSelectionEntry
A weighted entry in a structure set.
StructureSet
Vanilla’s StructureSet: weighted structures + one placement.

Enums§

FrequencyReductionMethod
Vanilla’s StructurePlacement.FrequencyReductionMethod. Variants differ in seeding/RNG strategy for historical compatibility.
PlacementKind
Kind-specific placement parameters.
SpreadType
How structures are spread within their grid cell. Vanilla’s RandomSpreadType.

Constants§

PARALLEL_RING_SNAP_THRESHOLD 🔒

Functions§

convert_structure_set 🔒
generate_ring_positions
Vanilla’s ChunkGeneratorStructureState.generateRingPositions. Positions in chunk coords. If snap_biome is provided it gets (block_x, block_z, &mut rng) and returns Some((snapped_block_x, snapped_block_z)) to snap, or None to keep raw.
java_round 🔒
Java’s Math.round(double) — half-up toward +∞. Rust’s f64::round() rounds -0.5 → -1; Java rounds -0.5 → 0.
load_vanilla_structure_sets
Loads all vanilla structure sets from the generated registry data.