pub struct ItemModifier {
pub id: String,
pub function: String,
pub parameters: HashMap<String, String>,
}Expand description
An item modifier applied during loot generation (like smelting, enchanted, etc.).
Fields§
§id: String§function: StringModifier function identifier, e.g. “yog:set_count” or “hexcasting:amethyst_shard_reducer”.
parameters: HashMap<String, String>Parameters as JSON object.
Implementations§
Trait Implementations§
Source§impl Clone for ItemModifier
impl Clone for ItemModifier
Source§fn clone(&self) -> ItemModifier
fn clone(&self) -> ItemModifier
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 moreAuto Trait Implementations§
impl Freeze for ItemModifier
impl RefUnwindSafe for ItemModifier
impl Send for ItemModifier
impl Sync for ItemModifier
impl Unpin for ItemModifier
impl UnsafeUnpin for ItemModifier
impl UnwindSafe for ItemModifier
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