pub enum ToolHit {
Entity,
Block,
Fire,
Air,
}
Expand description
The things that can be hit when swinging a tool.
Variants§
Entity
The tool hit an entity, which was attacked.
Block
The tool hit a block, which was broken.
Fire
The tool hit a fire, which was extinguished.
Air
The tool hit air, which did nothing.
Trait Implementations§
Source§impl Ord for ToolHit
impl Ord for ToolHit
Source§impl PartialOrd for ToolHit
impl PartialOrd for ToolHit
impl Copy for ToolHit
impl Eq for ToolHit
impl StructuralPartialEq for ToolHit
Auto Trait Implementations§
impl Freeze for ToolHit
impl RefUnwindSafe for ToolHit
impl Send for ToolHit
impl Sync for ToolHit
impl Unpin for ToolHit
impl UnwindSafe for ToolHit
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