pub struct OnPlayerCancelledCraftingEvent {
pub cancel_count: u32,
pub items: LuaInventory,
pub name: &'static str,
pub player_index: u32,
pub recipe: LuaRecipe,
pub tick: u32,
}Expand description
Called when a player cancels crafting.
Fields§
§cancel_count: u32§items: LuaInventory§name: &'static str§player_index: u32§recipe: LuaRecipe§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerCancelledCraftingEvent
impl Clone for OnPlayerCancelledCraftingEvent
Source§fn clone(&self) -> OnPlayerCancelledCraftingEvent
fn clone(&self) -> OnPlayerCancelledCraftingEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnPlayerCancelledCraftingEvent
Source§impl Default for OnPlayerCancelledCraftingEvent
impl Default for OnPlayerCancelledCraftingEvent
Source§fn default() -> OnPlayerCancelledCraftingEvent
fn default() -> OnPlayerCancelledCraftingEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerCancelledCraftingEvent
Auto Trait Implementations§
impl Freeze for OnPlayerCancelledCraftingEvent
impl RefUnwindSafe for OnPlayerCancelledCraftingEvent
impl Send for OnPlayerCancelledCraftingEvent
impl Sync for OnPlayerCancelledCraftingEvent
impl Unpin for OnPlayerCancelledCraftingEvent
impl UnsafeUnpin for OnPlayerCancelledCraftingEvent
impl UnwindSafe for OnPlayerCancelledCraftingEvent
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