Struct RecipePropertyAddition
#[non_exhaustive]pub struct RecipePropertyAddition {
pub set: String,
pub items: Vec<String>,
}Expand description
Items a mod adds to one of the recipe property sets: the items a furnace,
blast furnace, smoker, campfire, smithing table slot or brewing stand slot
accepts (RecipeManager.RECIPE_PROPERTY_SETS), or a mod-created menu input
set. New keys must belong to a namespace owned by the listener’s manifest;
later listeners may extend sets created by earlier listeners.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.set: StringThe set’s key, such as minecraft:furnace_input or mymod:pot_input.
items: Vec<String>The item ids to add.
Implementations§
Trait Implementations§
§impl Clone for RecipePropertyAddition
impl Clone for RecipePropertyAddition
§fn clone(&self) -> RecipePropertyAddition
fn clone(&self) -> RecipePropertyAddition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RecipePropertyAddition
impl Debug for RecipePropertyAddition
impl Eq for RecipePropertyAddition
§impl PartialEq for RecipePropertyAddition
impl PartialEq for RecipePropertyAddition
impl StructuralPartialEq for RecipePropertyAddition
Auto Trait Implementations§
impl Freeze for RecipePropertyAddition
impl RefUnwindSafe for RecipePropertyAddition
impl Send for RecipePropertyAddition
impl Sync for RecipePropertyAddition
impl Unpin for RecipePropertyAddition
impl UnsafeUnpin for RecipePropertyAddition
impl UnwindSafe for RecipePropertyAddition
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