pub struct RecipeLockedEvent {
pub recipe_id: RecipeId,
}Expand description
A recipe has been locked for the current player.
Fired at the Post stage on the game bus after the player’s
KnownRecipes component drops the recipe and the
Recipe Book Remove packet has been queued. The crafting player
is available via ctx.player().
Fields§
§recipe_id: RecipeIdStable identifier of the locked recipe.
Trait Implementations§
Source§impl Clone for RecipeLockedEvent
impl Clone for RecipeLockedEvent
Source§fn clone(&self) -> RecipeLockedEvent
fn clone(&self) -> RecipeLockedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecipeLockedEvent
impl Debug for RecipeLockedEvent
Source§impl Event for RecipeLockedEvent
impl Event for RecipeLockedEvent
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Whether this event has been cancelled by a Validate handler.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Upcasts to
&mut dyn Any for mutable type-erased dispatch.Source§impl EventRouting for RecipeLockedEvent
impl EventRouting for RecipeLockedEvent
Auto Trait Implementations§
impl Freeze for RecipeLockedEvent
impl RefUnwindSafe for RecipeLockedEvent
impl Send for RecipeLockedEvent
impl Sync for RecipeLockedEvent
impl Unpin for RecipeLockedEvent
impl UnsafeUnpin for RecipeLockedEvent
impl UnwindSafe for RecipeLockedEvent
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