Trait ItemPropertiesContainerInterface

Source
pub trait ItemPropertiesContainerInterface {
Show 15 methods // Required methods fn get_properties(&self) -> &HashMap<ItemPropertiesType, ItemProperties>; fn get_properties_mut( &mut self, ) -> &mut HashMap<ItemPropertiesType, ItemProperties>; // Provided methods fn get_stackable_properties(&self) -> Option<&StackableComponent> { ... } fn get_stackable_properties_mut( &mut self, ) -> Option<&mut StackableComponent> { ... } fn get_usage_properties(&self) -> Option<&UsageComponent> { ... } fn get_usage_properties_mut(&mut self) -> Option<&mut UsageComponent> { ... } fn set_count(&mut self, count: u64) { ... } fn is_stackable(&self) -> bool { ... } fn has_usage(&self) -> bool { ... } fn get_count(&self) -> Option<u64> { ... } fn get_times_used(&self) -> Option<u64> { ... } fn on_use(&mut self, times: u64) { ... } fn on_add(&mut self, amount: u64) { ... } fn on_remove(&mut self, amount: u64) { ... } fn should_consume(&self) -> bool { ... }
}

Required Methods§

Provided Methods§

Implementors§