[][src]Struct ozelot::clientbound::UpdateScore

pub struct UpdateScore { /* fields omitted */ }

Methods

impl UpdateScore[src]

pub fn new_raw(
    name: String,
    action: u8,
    objective_name: String,
    value: Option<i32>
) -> ClientboundPacket
[src]

pub fn get_name(&self) -> &String[src]

Get the name of the score to be updated

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

Get the action being performed

pub fn get_objective_name(&self) -> &String[src]

Get the name of the objective the score belongs to

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

Get the score to be displayed if this packet is updating a score, else None

Trait Implementations

impl Clone for UpdateScore[src]

impl Debug for UpdateScore[src]

impl PartialEq<UpdateScore> for UpdateScore[src]

impl StructuralPartialEq for UpdateScore[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.