Skip to main content

RecipePropertiesHost

Trait RecipePropertiesHost 

pub trait RecipePropertiesHost {
    // Provided method
    fn mod_recipe_property_contains(&self, set: &str, item: ItemKey) -> bool { ... }
}
Expand description

The host’s read-only mod recipe property membership service.

Provided Methods§

fn mod_recipe_property_contains(&self, set: &str, item: ItemKey) -> bool

Side: both. Whether a mod-created recipe property set accepts an item ID. Unknown sets/items and vanilla keys return false. The server uses its current load, and clients use the server’s last synchronized generation (local preload before the first packet). The same read on LoopContext lets menu_slot_rules filter a slot identically for server and prediction. Membership reads allocate nothing and perform no registry scans.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§