pub(super) struct FuzzedBiomeColumn<'a, 'b> {
quarts: &'a mut SurfaceQuartBiomes<'b>,
classes: Option<&'a SurfaceBiomeClasses>,
biome_zoom_seed: i64,
parent_x: i32,
parent_z: i32,
fract_x: f64,
fract_z: f64,
cached_parent_y: i32,
candidates: [BiomeCandidate; 8],
rval_after_cx: [i64; 2],
class_parent_y: i32,
uniform_biome: Option<u16>,
}Expand description
cache fuzzed biome lookups for one column
Fields§
§quarts: &'a mut SurfaceQuartBiomes<'b>§classes: Option<&'a SurfaceBiomeClasses>§biome_zoom_seed: i64§parent_x: i32§parent_z: i32§fract_x: f64§fract_z: f64§cached_parent_y: i32§candidates: [BiomeCandidate; 8]§rval_after_cx: [i64; 2]§class_parent_y: i32§uniform_biome: Option<u16>Implementations§
Source§impl<'a, 'b> FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> FuzzedBiomeColumn<'a, 'b>
pub(super) fn new( quarts: &'a mut SurfaceQuartBiomes<'b>, classes: Option<&'a SurfaceBiomeClasses>, biome_zoom_seed: i64, block_x: i32, block_z: i32, ) -> Self
Sourcefn compute_cy_group(&mut self, cy: i32, high: bool)
fn compute_cy_group(&mut self, cy: i32, high: bool)
fill the low or high y slots for this candidate group
Sourcefn recompute_candidates(&mut self, parent_y: i32)
fn recompute_candidates(&mut self, parent_y: i32)
refresh candidates for this parent y
Sourcepub(super) fn get_for_surface_rule(&mut self, block_y: i32) -> u16
pub(super) fn get_for_surface_rule(&mut self, block_y: i32) -> u16
A biome the surface rule cannot distinguish from Self::get’s.
Sourcepub(super) fn below_preliminary_outcome(
&mut self,
block_y: i32,
) -> PartialSurfaceOutcome
pub(super) fn below_preliminary_outcome( &mut self, block_y: i32, ) -> PartialSurfaceOutcome
resolve below the preliminary surface using y and a shared biome class
Sourcefn uniform_group_biome(&mut self, block_y: i32) -> Option<u16>
fn uniform_group_biome(&mut self, block_y: i32) -> Option<u16>
The group’s shared-class candidate biome, if its 8 candidates agree.
fn uniform_candidate_biome( &mut self, classes: &SurfaceBiomeClasses, parent_y: i32, ) -> Option<u16>
Trait Implementations§
Source§impl SurfaceBiomeProvider for FuzzedBiomeColumn<'_, '_>
impl SurfaceBiomeProvider for FuzzedBiomeColumn<'_, '_>
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> !Send for FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> !Sync for FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> !UnwindSafe for FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> Freeze for FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> Unpin for FuzzedBiomeColumn<'a, 'b>
impl<'a, 'b> UnsafeUnpin for FuzzedBiomeColumn<'a, 'b>
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<>>