[−][src]Struct ozelot::clientbound::UpdateScore
Methods
impl UpdateScore
[src]
pub fn new_raw(
name: String,
action: u8,
objective_name: String,
value: Option<i32>
) -> ClientboundPacket
[src]
name: String,
action: u8,
objective_name: String,
value: Option<i32>
) -> ClientboundPacket
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]
fn clone(&self) -> UpdateScore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UpdateScore
[src]
impl PartialEq<UpdateScore> for UpdateScore
[src]
fn eq(&self, other: &UpdateScore) -> bool
[src]
fn ne(&self, other: &UpdateScore) -> bool
[src]
impl StructuralPartialEq for UpdateScore
[src]
Auto Trait Implementations
impl RefUnwindSafe for UpdateScore
impl Send for UpdateScore
impl Sync for UpdateScore
impl Unpin for UpdateScore
impl UnwindSafe for UpdateScore
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,