Struct ClientTargeting
#[non_exhaustive]pub struct ClientTargeting {
pub pick_liquids: bool,
pub hit_through_walls: bool,
pub entity: Option<EntityRef>,
}Expand description
Per-window targeting controls. Defaults preserve vanilla picking. Reach remains backed
by minecraft:block_interaction_range and minecraft:entity_interaction_range; a server
mod changes those through the player’s living attribute handle, not these client controls.
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.pick_liquids: boolInclude source and flowing fluid shapes in the ordinary outline pick.
hit_through_walls: boolLet entity picks and mod-selected attacks pass block outlines on this client.
entity: Option<EntityRef>Prefer this client-level entity for the crosshair and attacks; None restores the ray. Stale, self, unsupported, out-of-reach or occluded targets cannot be attacked.
Trait Implementations§
§impl Clone for ClientTargeting
impl Clone for ClientTargeting
§fn clone(&self) -> ClientTargeting
fn clone(&self) -> ClientTargeting
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 moreimpl Copy for ClientTargeting
§impl Debug for ClientTargeting
impl Debug for ClientTargeting
§impl Default for ClientTargeting
impl Default for ClientTargeting
§fn default() -> ClientTargeting
fn default() -> ClientTargeting
Returns the “default value” for a type. Read more
impl Eq for ClientTargeting
§impl PartialEq for ClientTargeting
impl PartialEq for ClientTargeting
impl StructuralPartialEq for ClientTargeting
Auto Trait Implementations§
impl Freeze for ClientTargeting
impl RefUnwindSafe for ClientTargeting
impl Send for ClientTargeting
impl Sync for ClientTargeting
impl Unpin for ClientTargeting
impl UnsafeUnpin for ClientTargeting
impl UnwindSafe for ClientTargeting
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