Module item

Source

Re-exports§

pub use modular::MaterialStatManifest;
pub use modular::ModularBase;
pub use modular::ModularComponent;
pub use tool::AbilityMap;
pub use tool::AbilitySet;
pub use tool::AbilitySpec;
pub use tool::Hands;
pub use tool::Tool;
pub use tool::ToolKind;

Modules§

armor
item_key
modular
tool

Structs§

DurabilityMultiplier
FrontendItem
Newtype around Item used for frontend events to prevent it accidentally being used for anything other than frontend events
Item
NOTE: Do not call Item::clone without consulting the core devs! It only exists due to being required for message serialization at the moment, and should not be used for any other purpose.
ItemConfig
ItemDef
ItemDrops
ItemI18n
To be used with ItemDesc::i18n
Lantern
MaterialIter
An iterator over the variants of Material
OperationFailure
PickupItem
RawItemDef 🔒

Enums§

ConsumableKind
Effects
ItemBase
ItemConfigError
ItemDefinitionId
ItemDefinitionIdOwned
ItemKind
ItemTag
Material
MaterialKind
Quality
Reagent
Throwable
Utility

Traits§

ItemDesc
Provides common methods providing details about an item definition for either an Item containing the definition, or the actual ItemDef
TagExampleInfo

Functions§

all_item_defs_expect
Returns all item asset specifiers
all_items_expect
Designed to return all possible items, including modulars. And some impossible too, like ItemKind::TagExamples.
flatten_counted_items
try_all_item_defs
Returns all item asset specifiers

Type Aliases§

I18nId 🔒
ItemId