pub enum BossBarAction {
Add(BossBarAddSpec),
Remove,
UpdateHealth(BossBarUpdateHealthSpec),
UpdateTitle(BossBarUpdateTitleSpec),
UpdateStyle(BossBarUpdateStyleSpec),
UpdateFlags(BossBarUpdateFlagsSpec),
}
Variants§
Add(BossBarAddSpec)
Remove
UpdateHealth(BossBarUpdateHealthSpec)
UpdateTitle(BossBarUpdateTitleSpec)
UpdateStyle(BossBarUpdateStyleSpec)
UpdateFlags(BossBarUpdateFlagsSpec)
Implementations§
Source§impl BossBarAction
impl BossBarAction
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for BossBarAction
impl Clone for BossBarAction
Source§fn clone(&self) -> BossBarAction
fn clone(&self) -> BossBarAction
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 BossBarAction
impl Debug for BossBarAction
Source§impl Deserialize for BossBarAction
impl Deserialize for BossBarAction
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for BossBarAction
impl PartialEq for BossBarAction
Source§impl Serialize for BossBarAction
impl Serialize for BossBarAction
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for BossBarAction
Auto Trait Implementations§
impl Freeze for BossBarAction
impl RefUnwindSafe for BossBarAction
impl Send for BossBarAction
impl Sync for BossBarAction
impl Unpin for BossBarAction
impl UnwindSafe for BossBarAction
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