[][src]Struct ozelot::clientbound::StopSound

pub struct StopSound { /* fields omitted */ }

Methods

impl StopSound[src]

pub fn new_raw(
    flags: u8,
    source: Option<i32>,
    sound: Option<String>
) -> ClientboundPacket
[src]

pub fn get_flags(&self) -> &u8[src]

get the flags field (UNDOCUMENTED)

pub fn get_source(&self) -> &Option<i32>[src]

Get the source to stop sound from. If None stop from all sources.

pub fn get_sound(&self) -> &Option<String>[src]

Get the identifier to stop, if relevant.

Trait Implementations

impl Clone for StopSound[src]

impl Debug for StopSound[src]

impl PartialEq<StopSound> for StopSound[src]

impl StructuralPartialEq for StopSound[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.