#[non_exhaustive]pub enum EntityUse {
Interact,
Attack,
InteractAt(Vec3),
}Expand description
The use_entity action.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Interact
Right click (0).
Attack
Left click (1).
InteractAt(Vec3)
Right click at a point relative to the entity position (2).
Trait Implementations§
impl Copy for EntityUse
impl StructuralPartialEq for EntityUse
Auto Trait Implementations§
impl Freeze for EntityUse
impl RefUnwindSafe for EntityUse
impl Send for EntityUse
impl Sync for EntityUse
impl Unpin for EntityUse
impl UnsafeUnpin for EntityUse
impl UnwindSafe for EntityUse
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