pub struct TrimMaterial {
pub asset_name: String,
pub overrides: Vec<(Ident<String>, String)>,
pub description: TextComponent,
}Expand description
Defines a material used to trim armor (e.g., Gold, Amethyst).
Fields§
§asset_name: StringCorresponds to “Suffix” in the Wiki.
This string is appended to the texture path (e.g., “amethyst” ->
“trims/items/leggings_trim_amethyst”).
overrides: Vec<(Ident<String>, String)>Allows specific armor materials to use a different texture suffix.
Structure:
- Key: Armor Material Model Name (Identifier, e.g., “minecraft:netherite”)
- Value: Overridden Asset Name (String, e.g., “
amethyst_darker”)
description: TextComponentCorresponds to “Description” in the Wiki. The text displayed in the item tooltip (e.g., “Amethyst Material”).
Trait Implementations§
Source§impl Clone for TrimMaterial
impl Clone for TrimMaterial
Source§fn clone(&self) -> TrimMaterial
fn clone(&self) -> TrimMaterial
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrimMaterial
impl Debug for TrimMaterial
Source§impl<'a> Decode<'a> for TrimMaterial
impl<'a> Decode<'a> for TrimMaterial
Source§impl Encode for TrimMaterial
impl Encode for TrimMaterial
Source§impl PartialEq for TrimMaterial
impl PartialEq for TrimMaterial
impl StructuralPartialEq for TrimMaterial
Auto Trait Implementations§
impl Freeze for TrimMaterial
impl RefUnwindSafe for TrimMaterial
impl Send for TrimMaterial
impl Sync for TrimMaterial
impl Unpin for TrimMaterial
impl UnwindSafe for TrimMaterial
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