pub trait Structure: Send + Sync {
// Required method
fn find_generation_point(
&self,
ctx: &mut dyn StructureGenerationContext,
structure: &StructureData,
rng: &mut LegacyRandom,
) -> Option<GenerationStub>;
}Expand description
Vanilla’s Structure::findValidGenerationPoint. Impls own their RNG order,
collision checks, and biome check.
Required Methods§
Sourcefn find_generation_point(
&self,
ctx: &mut dyn StructureGenerationContext,
structure: &StructureData,
rng: &mut LegacyRandom,
) -> Option<GenerationStub>
fn find_generation_point( &self, ctx: &mut dyn StructureGenerationContext, structure: &StructureData, rng: &mut LegacyRandom, ) -> Option<GenerationStub>
structure carries registry data; per-set metadata stays in placement.
rng is a fresh LegacyRandom seeded with setLargeFeatureSeed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".