Struct OnUseTickEvent
pub struct OnUseTickEvent<'a> {
pub stack: &'a ItemStack,
pub entity: Option<i32>,
pub remaining: i32,
}Expand description
What ItemPart::on_use_tick 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>§remaining: i32Auto Trait Implementations§
impl<'a> Freeze for OnUseTickEvent<'a>
impl<'a> RefUnwindSafe for OnUseTickEvent<'a>
impl<'a> Send for OnUseTickEvent<'a>
impl<'a> Sync for OnUseTickEvent<'a>
impl<'a> Unpin for OnUseTickEvent<'a>
impl<'a> UnsafeUnpin for OnUseTickEvent<'a>
impl<'a> UnwindSafe for OnUseTickEvent<'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