pub enum BossbarSetType {
Color(BossbarColor),
Max(i32),
Name(SNBT),
Players(Option<EntitySelector>),
Style(BossbarStyle),
Value(i32),
Visible(bool),
}Variants§
Color(BossbarColor)
Set the text color (if no color was specified as part of a text component) and bar color. Defaults to white upon creation.
Max(i32)
Set the bossbar’s maximum value. Defaults to 100 upon creation.
Name(SNBT)
Set the bossbar’s name.
Players(Option<EntitySelector>)
Change the set of players to whom the bar is visible. Defaults to none upon creation.
Style(BossbarStyle)
Set the bossbar’s visual amount of segments: continuous, 6 segments, 10 segments, 12 segments, or 20 segments. Defaults to progress upon creation.
Value(i32)
Set the bossbar’s current value. Defaults to 0 upon creation.
Visible(bool)
Set the bossbar’s visibility. Defaults to true upon creation.
Trait Implementations§
Source§impl Clone for BossbarSetType
impl Clone for BossbarSetType
Source§fn clone(&self) -> BossbarSetType
fn clone(&self) -> BossbarSetType
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 BossbarSetType
impl Debug for BossbarSetType
Source§impl Display for BossbarSetType
impl Display for BossbarSetType
Source§impl HasMacro for BossbarSetType
impl HasMacro for BossbarSetType
Source§impl Hash for BossbarSetType
impl Hash for BossbarSetType
Source§impl PartialEq for BossbarSetType
impl PartialEq for BossbarSetType
impl Eq for BossbarSetType
impl StructuralPartialEq for BossbarSetType
Auto Trait Implementations§
impl Freeze for BossbarSetType
impl RefUnwindSafe for BossbarSetType
impl Send for BossbarSetType
impl Sync for BossbarSetType
impl Unpin for BossbarSetType
impl UnwindSafe for BossbarSetType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more