pub struct ClientboundPlaySoundEffect {
pub sound: Vec<u8>,
pub sound_category: i32,
pub x: i32,
pub y: i32,
pub z: i32,
pub volume: f32,
pub pitch: f32,
pub seed: i64,
}Fields§
§sound: Vec<u8>§sound_category: i32§x: i32§y: i32§z: i32§volume: f32§pitch: f32§seed: i64Implementations§
Source§impl ClientboundPlaySoundEffect
impl ClientboundPlaySoundEffect
Sourcepub const PACKET_ID: i32 = 111i32
pub const PACKET_ID: i32 = 111i32
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 ClientboundPlaySoundEffect
impl Clone for ClientboundPlaySoundEffect
Source§fn clone(&self) -> ClientboundPlaySoundEffect
fn clone(&self) -> ClientboundPlaySoundEffect
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 ClientboundPlaySoundEffect
impl Debug for ClientboundPlaySoundEffect
Source§impl Default for ClientboundPlaySoundEffect
impl Default for ClientboundPlaySoundEffect
Source§fn default() -> ClientboundPlaySoundEffect
fn default() -> ClientboundPlaySoundEffect
Returns the “default value” for a type. Read more
Source§impl Encode for ClientboundPlaySoundEffect
impl Encode for ClientboundPlaySoundEffect
Source§impl EncodedSize for ClientboundPlaySoundEffect
impl EncodedSize for ClientboundPlaySoundEffect
fn encoded_size(&self) -> usize
impl StructuralPartialEq for ClientboundPlaySoundEffect
Auto Trait Implementations§
impl Freeze for ClientboundPlaySoundEffect
impl RefUnwindSafe for ClientboundPlaySoundEffect
impl Send for ClientboundPlaySoundEffect
impl Sync for ClientboundPlaySoundEffect
impl Unpin for ClientboundPlaySoundEffect
impl UnsafeUnpin for ClientboundPlaySoundEffect
impl UnwindSafe for ClientboundPlaySoundEffect
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