pub struct EndBiomeSource {
seed: u64,
end_islands: EndIslands,
}Expand description
Biome source for The End dimension.
Uses spatial distance from origin and the EndIslands density function for
biome selection. Does NOT use climate parameters — biome choice is based on:
- Central island (
chunkX² + chunkZ² ≤ 4096): alwaysthe_end - Outer islands (erosion from
EndIslandsat transformed coordinates):> 0.25→end_highlands≥ -0.0625→end_midlands< -0.21875→small_end_islands- otherwise →
end_barrens
Matches vanilla’s TheEndBiomeSource.
Fields§
§seed: u64§end_islands: EndIslandsImplementations§
Source§impl EndBiomeSource
impl EndBiomeSource
Sourcepub fn new(seed: u64) -> Self
pub fn new(seed: u64) -> Self
Create a new End biome source with the given world seed.
The EndIslands density function is initialized with the world seed,
matching vanilla’s RandomState.NoiseWiringHelper.wrapNew() which replaces
the default seed-0 instance with EndIslandDensityFunction(worldSeed).
fn chunk_sampler(&self) -> ChunkBiomeSampler<'_>
Auto Trait Implementations§
impl Freeze for EndBiomeSource
impl RefUnwindSafe for EndBiomeSource
impl Send for EndBiomeSource
impl Sync for EndBiomeSource
impl Unpin for EndBiomeSource
impl UnsafeUnpin for EndBiomeSource
impl UnwindSafe for EndBiomeSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>