Struct LivingEntityUseItemFinishEvent
pub struct LivingEntityUseItemFinishEvent<'a> {
pub stack: &'a ItemStack,
pub entity: Option<i32>,
pub hand: Hand,
pub duration: i32,
pub result: &'a mut Option<ItemStack>,
}Expand description
What Hooks::living_entity_use_item_finish is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§stack: &'a ItemStack§entity: Option<i32>§hand: Hand§duration: i32§result: &'a mut Option<ItemStack>Auto Trait Implementations§
impl<'a> !UnwindSafe for LivingEntityUseItemFinishEvent<'a>
impl<'a> Freeze for LivingEntityUseItemFinishEvent<'a>
impl<'a> RefUnwindSafe for LivingEntityUseItemFinishEvent<'a>
impl<'a> Send for LivingEntityUseItemFinishEvent<'a>
impl<'a> Sync for LivingEntityUseItemFinishEvent<'a>
impl<'a> Unpin for LivingEntityUseItemFinishEvent<'a>
impl<'a> UnsafeUnpin for LivingEntityUseItemFinishEvent<'a>
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