pub struct ClientboundPlayEntitySoundEffect {
pub sound: Vec<u8>,
pub sound_category: i32,
pub entity_id: i32,
pub volume: f32,
pub pitch: f32,
pub seed: i64,
}Fields§
§sound: Vec<u8>§sound_category: i32§entity_id: i32§volume: f32§pitch: f32§seed: i64Implementations§
Source§impl ClientboundPlayEntitySoundEffect
impl ClientboundPlayEntitySoundEffect
Sourcepub const PACKET_ID: i32 = 110i32
pub const PACKET_ID: i32 = 110i32
The packet ID used by the registry to dispatch this packet.
This value is declared via #[packet(id = N)] and corresponds to
the VarInt packet ID read/written by the framing layer. The struct’s
own Encode/Decode does NOT include this ID — it only encodes the
packet’s payload fields.
Trait Implementations§
Source§impl Clone for ClientboundPlayEntitySoundEffect
impl Clone for ClientboundPlayEntitySoundEffect
Source§fn clone(&self) -> ClientboundPlayEntitySoundEffect
fn clone(&self) -> ClientboundPlayEntitySoundEffect
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 Default for ClientboundPlayEntitySoundEffect
impl Default for ClientboundPlayEntitySoundEffect
Source§fn default() -> ClientboundPlayEntitySoundEffect
fn default() -> ClientboundPlayEntitySoundEffect
Returns the “default value” for a type. Read more
Source§impl EncodedSize for ClientboundPlayEntitySoundEffect
impl EncodedSize for ClientboundPlayEntitySoundEffect
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlayEntitySoundEffect
impl PartialEq for ClientboundPlayEntitySoundEffect
Source§fn eq(&self, other: &ClientboundPlayEntitySoundEffect) -> bool
fn eq(&self, other: &ClientboundPlayEntitySoundEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientboundPlayEntitySoundEffect
Auto Trait Implementations§
impl Freeze for ClientboundPlayEntitySoundEffect
impl RefUnwindSafe for ClientboundPlayEntitySoundEffect
impl Send for ClientboundPlayEntitySoundEffect
impl Sync for ClientboundPlayEntitySoundEffect
impl Unpin for ClientboundPlayEntitySoundEffect
impl UnsafeUnpin for ClientboundPlayEntitySoundEffect
impl UnwindSafe for ClientboundPlayEntitySoundEffect
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