Struct ClipHit
pub struct ClipHit {
pub miss: bool,
pub block: [i32; 3],
pub face: BlockFace,
pub location: [f64; 3],
pub inside: bool,
pub world_border: bool,
}Expand description
Result of a block ray, including the vanilla miss result.
Fields§
§miss: boolWhether the ray hit nothing; the other fields are then the vanilla miss values.
block: [i32; 3]The hit block’s position.
face: BlockFaceThe face the ray entered.
location: [f64; 3]The exact hit point in blocks.
inside: boolWhether the ray started inside the block.
world_border: boolWhether the hit is the world border.
Trait Implementations§
impl Copy for ClipHit
impl StructuralPartialEq for ClipHit
Auto Trait Implementations§
impl Freeze for ClipHit
impl RefUnwindSafe for ClipHit
impl Send for ClipHit
impl Sync for ClipHit
impl Unpin for ClipHit
impl UnsafeUnpin for ClipHit
impl UnwindSafe for ClipHit
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