pub struct RecipeRegisteredEvent {
pub recipe_id: RecipeId,
}Expand description
A recipe has been registered with the runtime registry.
Fired at the Post stage on the game bus after a successful
(i.e. non-cancelled) call to RecipeRegistrar::add_shaped or
add_shapeless. Useful for plugins that index recipes (recipe
book UI, search, dependency tracking, analytics).
Fires during plugin loading; see RecipeRegisterEvent for the
context contract.
Fields§
§recipe_id: RecipeIdStable identifier of the newly registered recipe.
Trait Implementations§
Source§impl Clone for RecipeRegisteredEvent
impl Clone for RecipeRegisteredEvent
Source§fn clone(&self) -> RecipeRegisteredEvent
fn clone(&self) -> RecipeRegisteredEvent
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 RecipeRegisteredEvent
impl Debug for RecipeRegisteredEvent
Source§impl Event for RecipeRegisteredEvent
impl Event for RecipeRegisteredEvent
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 RecipeRegisteredEvent
impl EventRouting for RecipeRegisteredEvent
Auto Trait Implementations§
impl Freeze for RecipeRegisteredEvent
impl RefUnwindSafe for RecipeRegisteredEvent
impl Send for RecipeRegisteredEvent
impl Sync for RecipeRegisteredEvent
impl Unpin for RecipeRegisteredEvent
impl UnsafeUnpin for RecipeRegisteredEvent
impl UnwindSafe for RecipeRegisteredEvent
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