[][src]Struct ozelot::clientbound::Title

pub struct Title { /* fields omitted */ }

Methods

impl Title[src]

pub fn new_raw(
    action: i32,
    text: Option<String>,
    times: Option<(i32, i32, i32)>
) -> ClientboundPacket
[src]

pub fn get_action(&self) -> &i32[src]

Get the raw action enum integer

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

Get the title/subtitle/action bar text if action is set title/subtitle/action bar in raw json

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

If action is 'set times and display' get Some((fade_in, stay, fade_out)) else get None

Trait Implementations

impl Clone for Title[src]

impl Debug for Title[src]

impl PartialEq<Title> for Title[src]

impl StructuralPartialEq for Title[src]

Auto Trait Implementations

impl RefUnwindSafe for Title

impl Send for Title

impl Sync for Title

impl Unpin for Title

impl UnwindSafe for Title

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.