pub struct TerrainColumnSample {
pub surface_y: i16,
pub surface_block_state: BlockState,
pub relief_y: i16,
pub relief_block_state: BlockState,
pub overlay: Option<TerrainColumnOverlay>,
pub water: Option<TerrainColumnWater>,
pub biome: Option<TerrainColumnBiome>,
pub source: TerrainSampleSource,
}Expand description
Canonical terrain surface sample for one local X/Z column.
Fields§
§surface_y: i16Y coordinate of the visible surface block.
surface_block_state: BlockStateBlock state selected as the visible surface.
relief_y: i16Y coordinate of the supporting relief block.
relief_block_state: BlockStateBlock state selected as relief/support.
overlay: Option<TerrainColumnOverlay>Optional thin overlay block above the primary surface.
water: Option<TerrainColumnWater>Optional water context for this sampled column.
biome: Option<TerrainColumnBiome>Biome loading policy for the render request.
source: TerrainSampleSourceStorage or terrain source that produced this value.
Trait Implementations§
Source§impl Clone for TerrainColumnSample
impl Clone for TerrainColumnSample
Source§fn clone(&self) -> TerrainColumnSample
fn clone(&self) -> TerrainColumnSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerrainColumnSample
impl Debug for TerrainColumnSample
Source§impl PartialEq for TerrainColumnSample
impl PartialEq for TerrainColumnSample
Source§fn eq(&self, other: &TerrainColumnSample) -> bool
fn eq(&self, other: &TerrainColumnSample) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TerrainColumnSample
Auto Trait Implementations§
impl Freeze for TerrainColumnSample
impl RefUnwindSafe for TerrainColumnSample
impl Send for TerrainColumnSample
impl Sync for TerrainColumnSample
impl Unpin for TerrainColumnSample
impl UnsafeUnpin for TerrainColumnSample
impl UnwindSafe for TerrainColumnSample
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more