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