pub struct OnPrePlayerCraftedItemEvent {
pub items: LuaInventory,
pub name: &'static str,
pub player_index: u32,
pub queued_count: u32,
pub recipe: LuaRecipe,
pub tick: u32,
}Expand description
Called when a player queues something to be crafted.
Fields§
§items: LuaInventory§name: &'static str§player_index: u32§queued_count: u32§recipe: LuaRecipe§tick: u32Trait Implementations§
Source§impl Clone for OnPrePlayerCraftedItemEvent
impl Clone for OnPrePlayerCraftedItemEvent
Source§fn clone(&self) -> OnPrePlayerCraftedItemEvent
fn clone(&self) -> OnPrePlayerCraftedItemEvent
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 OnPrePlayerCraftedItemEvent
Source§impl Debug for OnPrePlayerCraftedItemEvent
impl Debug for OnPrePlayerCraftedItemEvent
Source§impl Default for OnPrePlayerCraftedItemEvent
impl Default for OnPrePlayerCraftedItemEvent
Source§fn default() -> OnPrePlayerCraftedItemEvent
fn default() -> OnPrePlayerCraftedItemEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPrePlayerCraftedItemEvent
Auto Trait Implementations§
impl Freeze for OnPrePlayerCraftedItemEvent
impl RefUnwindSafe for OnPrePlayerCraftedItemEvent
impl Send for OnPrePlayerCraftedItemEvent
impl Sync for OnPrePlayerCraftedItemEvent
impl Unpin for OnPrePlayerCraftedItemEvent
impl UnsafeUnpin for OnPrePlayerCraftedItemEvent
impl UnwindSafe for OnPrePlayerCraftedItemEvent
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