pub struct PigSoundVariant {
pub key: Identifier,
pub adult_sounds: PigAge,
pub baby_sounds: PigAge,
}Expand description
Represents a set of sounds for a pig variant from a data pack JSON file.
Fields§
§key: Identifier§adult_sounds: PigAge§baby_sounds: PigAgeTrait Implementations§
Source§impl Debug for PigSoundVariant
impl Debug for PigSoundVariant
Source§impl RegistryEntry for PigSoundVariant
impl RegistryEntry for PigSoundVariant
Source§impl ToNbtTag for &PigSoundVariant
impl ToNbtTag for &PigSoundVariant
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for PigSoundVariant
impl RefUnwindSafe for PigSoundVariant
impl Send for PigSoundVariant
impl Sync for PigSoundVariant
impl Unpin for PigSoundVariant
impl UnsafeUnpin for PigSoundVariant
impl UnwindSafe for PigSoundVariant
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