#[non_exhaustive]pub struct DigOptions {
pub best_tool: bool,
pub face: Option<Face>,
pub timeout: Option<u64>,
}Expand description
Options of Bot::dig_with.
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.best_tool: boolSelect the hotbar slot that digs fastest first (default on; only select_slot, no
clicks). See Bot::equip_for_block to bring a tool from the main inventory.
face: Option<Face>The face to dig from (default: the most visible one).
timeout: Option<u64>Give up after this many ticks (default: twice the vanilla dig time + 2 s).
Implementations§
Source§impl DigOptions
impl DigOptions
Sourcepub const fn best_tool(self, on: bool) -> Self
pub const fn best_tool(self, on: bool) -> Self
Whether to select the fastest hotbar tool first.
let o = ghast_ext::DigOptions::default().best_tool(false);Trait Implementations§
Source§impl Clone for DigOptions
impl Clone for DigOptions
impl Copy for DigOptions
Source§impl Debug for DigOptions
impl Debug for DigOptions
Source§impl Default for DigOptions
impl Default for DigOptions
impl Eq for DigOptions
Source§impl PartialEq for DigOptions
impl PartialEq for DigOptions
impl StructuralPartialEq for DigOptions
Auto Trait Implementations§
impl Forget for DigOptions
impl Freeze for DigOptions
impl Move for DigOptions
impl RefUnwindSafe for DigOptions
impl Send for DigOptions
impl Sync for DigOptions
impl Unpin for DigOptions
impl UnsafeUnpin for DigOptions
impl UnwindSafe for DigOptions
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