Enum ModEvent
#[non_exhaustive]pub enum ModEvent {
UseStart(HeldItemSlot, u32),
UseStop(HeldItemSlot, u32),
}Expand description
What happened to a mod’s claimed item, oldest first.
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.
UseStart(HeldItemSlot, u32)
A right-click with the item began its use: the stack, and 0 ticks.
UseStop(HeldItemSlot, u32)
The use ended: the stack it began with, and the ticks it was held. It ends when the button comes up, the hand’s item changes or leaves the claim, the player respawns, or the game joins a server.
Trait Implementations§
impl StructuralPartialEq for ModEvent
Auto Trait Implementations§
impl Freeze for ModEvent
impl RefUnwindSafe for ModEvent
impl Send for ModEvent
impl Sync for ModEvent
impl Unpin for ModEvent
impl UnsafeUnpin for ModEvent
impl UnwindSafe for ModEvent
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