pub struct ToolRule {
pub blocks: IDSet,
pub speed: Option<f32>,
pub correct_drop_for_blocks: Option<bool>,
}Expand description
Defines custom mining speed logic for a tool.
Fields§
§blocks: IDSetThe blocks this rule applies to.
speed: Option<f32>If present, overrides the mining speed for these blocks.
correct_drop_for_blocks: Option<bool>If present and true, this tool is considered “correct” for the block (meaning the block will drop items when broken).
Trait Implementations§
impl StructuralPartialEq for ToolRule
Auto Trait Implementations§
impl Freeze for ToolRule
impl RefUnwindSafe for ToolRule
impl Send for ToolRule
impl Sync for ToolRule
impl Unpin for ToolRule
impl UnwindSafe for ToolRule
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