pub struct CraftingRecipeClearedEvent {
pub grid_size: u8,
}Expand description
The current crafting grid no longer matches any recipe.
Fired at the Post stage on the game bus only on the
transition matched → unmatched (i.e. the previous tick had a
non-empty result, this tick has none). Useful for plugins that
want to react when a result disappears (UI hints, achievements
for “almost crafted X”).
Fields§
§grid_size: u8Grid dimension: 2 for inventory crafting, 3 for crafting table.
Trait Implementations§
Source§impl Clone for CraftingRecipeClearedEvent
impl Clone for CraftingRecipeClearedEvent
Source§fn clone(&self) -> CraftingRecipeClearedEvent
fn clone(&self) -> CraftingRecipeClearedEvent
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 CraftingRecipeClearedEvent
impl Debug for CraftingRecipeClearedEvent
Source§impl Event for CraftingRecipeClearedEvent
impl Event for CraftingRecipeClearedEvent
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.Auto Trait Implementations§
impl Freeze for CraftingRecipeClearedEvent
impl RefUnwindSafe for CraftingRecipeClearedEvent
impl Send for CraftingRecipeClearedEvent
impl Sync for CraftingRecipeClearedEvent
impl Unpin for CraftingRecipeClearedEvent
impl UnsafeUnpin for CraftingRecipeClearedEvent
impl UnwindSafe for CraftingRecipeClearedEvent
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