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: Vec<(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>,
}
Fields§
§version: u8
§item_type: ItemType
§name: String
§description: String
§inventory_image: String
§wield_image: String
§wield_scale: v3f
§stack_max: s16
§usable: bool
§liquids_pointable: bool
§tool_capabilities: Option16<ToolCapabilities>
§groups: Vec<(String, s16)>
§node_placement_prediction: String
§sound_place: SimpleSoundSpec
§sound_place_failed: SimpleSoundSpec
§range: f32
§palette_image: String
§color: SColor
§inventory_overlay: String
§wield_overlay: String
§short_description: Option<String>
§place_param2: Option<u8>
§sound_use: Option<SimpleSoundSpec>
§sound_use_air: Option<SimpleSoundSpec>
Trait Implementations§
Source§impl Deserialize for ItemDef
impl Deserialize for ItemDef
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
impl StructuralPartialEq for ItemDef
Auto Trait Implementations§
impl Freeze for ItemDef
impl RefUnwindSafe for ItemDef
impl Send for ItemDef
impl Sync for ItemDef
impl Unpin for ItemDef
impl UnwindSafe for ItemDef
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