pub struct Selection {
pub bounds: Aabb,
pub dependency: ShapeDependency,
pub multi_pass_ray: bool,
pub can_collide: bool,
pub can_collide_liquid: bool,
pub has_collision_box: bool,
}Expand description
What the 1.12.2 crosshair ray test sees of a block state.
Fields§
§bounds: AabbgetBoundingBox(state, world, pos) with all neighbours air (block-local).
dependency: ShapeDependencySame classes as the collision dependency.
multi_pass_ray: boolStairs: the ray test runs per collision box instead of using bounds.
can_collide: boolBlock.canCollideCheck(state, false).
can_collide_liquid: boolBlock.canCollideCheck(state, true) (ray tests that stop at fluids).
has_collision_box: boolThe state has a collision box.
Trait Implementations§
impl Copy for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Forget for Selection
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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