pub struct OnPlayerCraftedItemEvent {
pub item_stack: LuaItemStack,
pub name: &'static str,
pub player_index: u32,
pub recipe: LuaRecipe,
pub tick: u32,
}Expand description
Called when the player finishes crafting an item. This event fires just before the results are inserted into the player’s inventory, not when the crafting is queued (see on_pre_player_crafted_item).
Fields§
§item_stack: LuaItemStack§name: &'static str§player_index: u32§recipe: LuaRecipe§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerCraftedItemEvent
impl Clone for OnPlayerCraftedItemEvent
Source§fn clone(&self) -> OnPlayerCraftedItemEvent
fn clone(&self) -> OnPlayerCraftedItemEvent
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 OnPlayerCraftedItemEvent
Source§impl Debug for OnPlayerCraftedItemEvent
impl Debug for OnPlayerCraftedItemEvent
Source§impl Default for OnPlayerCraftedItemEvent
impl Default for OnPlayerCraftedItemEvent
Source§fn default() -> OnPlayerCraftedItemEvent
fn default() -> OnPlayerCraftedItemEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerCraftedItemEvent
impl PartialEq for OnPlayerCraftedItemEvent
impl StructuralPartialEq for OnPlayerCraftedItemEvent
Auto Trait Implementations§
impl Freeze for OnPlayerCraftedItemEvent
impl RefUnwindSafe for OnPlayerCraftedItemEvent
impl Send for OnPlayerCraftedItemEvent
impl Sync for OnPlayerCraftedItemEvent
impl Unpin for OnPlayerCraftedItemEvent
impl UnsafeUnpin for OnPlayerCraftedItemEvent
impl UnwindSafe for OnPlayerCraftedItemEvent
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