Struct BlockHit
#[non_exhaustive]pub struct BlockHit {
pub point: [f64; 3],
pub face: [i32; 3],
pub inside: bool,
}Expand description
Where a block use clicked, as vanilla’s BlockHitResult says it. Fields
may be added: build one with BlockHit::new.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.point: [f64; 3]The point clicked, in world coordinates (getLocation).
face: [i32; 3]The face clicked, [0, 1, 0] for the top (getDirection).
inside: boolThe ray started inside the block’s shape (isInside).
Implementations§
Trait Implementations§
impl Copy for BlockHit
impl StructuralPartialEq for BlockHit
Auto Trait Implementations§
impl Freeze for BlockHit
impl RefUnwindSafe for BlockHit
impl Send for BlockHit
impl Sync for BlockHit
impl Unpin for BlockHit
impl UnsafeUnpin for BlockHit
impl UnwindSafe for BlockHit
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