pub enum BossBarDivision {
NoDivision,
SixNotches,
TenNotches,
TwelveNotches,
TwentyNotches,
}
Variants§
Implementations§
Source§impl BossBarDivision
impl BossBarDivision
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 BossBarDivision
impl Clone for BossBarDivision
Source§fn clone(&self) -> BossBarDivision
fn clone(&self) -> BossBarDivision
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 BossBarDivision
impl Debug for BossBarDivision
Source§impl Deserialize for BossBarDivision
impl Deserialize for BossBarDivision
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for BossBarDivision
impl PartialEq for BossBarDivision
Source§impl Serialize for BossBarDivision
impl Serialize for BossBarDivision
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for BossBarDivision
Auto Trait Implementations§
impl Freeze for BossBarDivision
impl RefUnwindSafe for BossBarDivision
impl Send for BossBarDivision
impl Sync for BossBarDivision
impl Unpin for BossBarDivision
impl UnwindSafe for BossBarDivision
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