pub struct RecipeBookFillRequestEvent {
pub recipe_id: RecipeId,
pub make_all: bool,
pub cancelled: bool,
}Expand description
A player is about to auto-fill a recipe from the recipe book (cancellable).
Fired at the Validate stage on the game bus after the
server has resolved the recipe and pre-checked that the player’s
inventory has enough ingredients, but before any item is
moved. Cancelling the event aborts the auto-fill — the grid stays
untouched and RecipeBookFilledEvent is not dispatched. Plugins
use it for permission gating (admin-only recipes, anti-grief
rate-limits, gated unlocks).
The crafting player is available via ctx.player().
Fields§
§recipe_id: RecipeIdStable identifier of the recipe the player clicked.
make_all: boolWhether the player shift-clicked (asking for the largest
possible batch). The Phase 2 server implementation always
behaves as if false — true is plumbed through but
silently degrades for now (Phase 3 will add real stacking).
cancelled: boolWhether this event has been cancelled by a Validate handler.
Trait Implementations§
Source§impl Clone for RecipeBookFillRequestEvent
impl Clone for RecipeBookFillRequestEvent
Source§fn clone(&self) -> RecipeBookFillRequestEvent
fn clone(&self) -> RecipeBookFillRequestEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecipeBookFillRequestEvent
impl Debug for RecipeBookFillRequestEvent
Source§impl Event for RecipeBookFillRequestEvent
impl Event for RecipeBookFillRequestEvent
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
&mut dyn Any for mutable type-erased dispatch.