pub struct DigConditions {
pub efficiency: u8,
pub haste: Option<i32>,
pub mining_fatigue: Option<i32>,
pub eye_in_water: bool,
pub aqua_affinity: bool,
pub on_ground: bool,
}Expand description
The player’s mining conditions.
Fields§
§efficiency: u8Efficiency enchantment level of the held stack (0 = none).
haste: Option<i32>Haste amplifier (0 = Haste I), if active.
mining_fatigue: Option<i32>Mining fatigue amplifier, if active.
eye_in_water: boolThe eyes are in water (isSubmergedIn(Material.WATER)).
aqua_affinity: boolAqua affinity on any armour piece.
on_ground: boolOn the ground (otherwise the speed is divided by 5).
Trait Implementations§
Source§impl Clone for DigConditions
impl Clone for DigConditions
impl Copy for DigConditions
Source§impl Debug for DigConditions
impl Debug for DigConditions
Source§impl Default for DigConditions
impl Default for DigConditions
impl Eq for DigConditions
Source§impl PartialEq for DigConditions
impl PartialEq for DigConditions
impl StructuralPartialEq for DigConditions
Auto Trait Implementations§
impl Forget for DigConditions
impl Freeze for DigConditions
impl Move for DigConditions
impl RefUnwindSafe for DigConditions
impl Send for DigConditions
impl Sync for DigConditions
impl Unpin for DigConditions
impl UnsafeUnpin for DigConditions
impl UnwindSafe for DigConditions
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