pub enum AdvancementType {
Task,
Challenge,
Goal,
}Variants§
Implementations§
Source§impl AdvancementType
impl AdvancementType
fn get_translated_text(&self) -> &Translation<2usize>
pub const fn color(&self) -> Color
pub fn create_announcement( &self, advancement: AdvancementRef, player_name: TextComponent, ) -> TextComponent
Trait Implementations§
Source§impl Clone for AdvancementType
impl Clone for AdvancementType
impl Copy for AdvancementType
Source§impl Debug for AdvancementType
impl Debug for AdvancementType
Source§impl Default for AdvancementType
impl Default for AdvancementType
Source§impl<'de> Deserialize<'de> for AdvancementType
impl<'de> Deserialize<'de> for AdvancementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AdvancementType
impl Serialize for AdvancementType
Auto Trait Implementations§
impl Freeze for AdvancementType
impl RefUnwindSafe for AdvancementType
impl Send for AdvancementType
impl Sync for AdvancementType
impl Unpin for AdvancementType
impl UnsafeUnpin for AdvancementType
impl UnwindSafe for AdvancementType
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreWraps this value in an
Arc<SyncMutex<>>