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