pub struct PlayNamedSoundEffectSpec {
pub sound_name: String,
pub sound_category: SoundCategory,
pub position: Vec3<FixedInt>,
pub volume: f32,
pub pitch: f32,
}Fields§
§sound_name: String§sound_category: SoundCategory§position: Vec3<FixedInt>§volume: f32§pitch: f32Trait Implementations§
Source§impl Clone for PlayNamedSoundEffectSpec
impl Clone for PlayNamedSoundEffectSpec
Source§fn clone(&self) -> PlayNamedSoundEffectSpec
fn clone(&self) -> PlayNamedSoundEffectSpec
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 PlayNamedSoundEffectSpec
impl Debug for PlayNamedSoundEffectSpec
Source§impl Deserialize for PlayNamedSoundEffectSpec
impl Deserialize for PlayNamedSoundEffectSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(String, SoundCategory, Vec3<FixedInt>, f32, f32)> for PlayNamedSoundEffectSpec
impl From<(String, SoundCategory, Vec3<FixedInt>, f32, f32)> for PlayNamedSoundEffectSpec
Source§impl From<PlayNamedSoundEffectSpec> for (String, SoundCategory, Vec3<FixedInt>, f32, f32)
impl From<PlayNamedSoundEffectSpec> for (String, SoundCategory, Vec3<FixedInt>, f32, f32)
Source§fn from(other: PlayNamedSoundEffectSpec) -> Self
fn from(other: PlayNamedSoundEffectSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayNamedSoundEffectSpec
impl PartialEq for PlayNamedSoundEffectSpec
Source§impl Serialize for PlayNamedSoundEffectSpec
impl Serialize for PlayNamedSoundEffectSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayNamedSoundEffectSpec
Auto Trait Implementations§
impl Freeze for PlayNamedSoundEffectSpec
impl RefUnwindSafe for PlayNamedSoundEffectSpec
impl Send for PlayNamedSoundEffectSpec
impl Sync for PlayNamedSoundEffectSpec
impl Unpin for PlayNamedSoundEffectSpec
impl UnwindSafe for PlayNamedSoundEffectSpec
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