pub struct ItemDef {Show 24 fields
pub version: u8,
pub item_type: ItemType,
pub name: String,
pub description: String,
pub inventory_image: String,
pub wield_image: String,
pub wield_scale: v3f,
pub stack_max: s16,
pub usable: bool,
pub liquids_pointable: bool,
pub tool_capabilities: Option16<ToolCapabilities>,
pub groups: Array16<Pair<String, s16>>,
pub node_placement_prediction: String,
pub sound_place: SimpleSoundSpec,
pub sound_place_failed: SimpleSoundSpec,
pub range: f32,
pub palette_image: String,
pub color: SColor,
pub inventory_overlay: String,
pub wield_overlay: String,
pub short_description: Option<String>,
pub place_param2: Option<u8>,
pub sound_use: Option<SimpleSoundSpec>,
pub sound_use_air: Option<SimpleSoundSpec>,
}
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.