pub struct BlockTip {
pub block: BlockPos,
pub chunk: ChunkPos,
pub local_x: u8,
pub local_z: u8,
pub surface: Option<SurfaceColumn>,
pub biome_id: Option<u32>,
pub height: Option<i16>,
pub is_slime_chunk: bool,
}Expand description
Block/tip information for one map coordinate.
Fields§
§block: BlockPosWorld block position for the queried map coordinate.
chunk: ChunkPosChunk containing the queried block.
local_x: u8Local X coordinate within the chunk, in the range 0..16.
local_z: u8Local Z coordinate within the chunk, in the range 0..16.
surface: Option<SurfaceColumn>Surface-column sample for the queried block, when available.
biome_id: Option<u32>Biome id associated with the sampled column.
height: Option<i16>Height in pixels or blocks, depending on the surrounding type.
is_slime_chunk: boolWhether the chunk is a Bedrock slime chunk.
Trait Implementations§
impl StructuralPartialEq for BlockTip
Auto Trait Implementations§
impl Freeze for BlockTip
impl RefUnwindSafe for BlockTip
impl Send for BlockTip
impl Sync for BlockTip
impl Unpin for BlockTip
impl UnsafeUnpin for BlockTip
impl UnwindSafe for BlockTip
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