pub enum AdvancementCommand {
Everything,
Only(ResourceLocation, Option<String>),
From(ResourceLocation),
Through(ResourceLocation),
Until(ResourceLocation),
}Variants§
Everything
Adds or removes all loaded advancements.
Only(ResourceLocation, Option<String>)
Adds or removes a single advancement or criterion.
From(ResourceLocation)
Adds or removes an advancement and all its child advancements.
Think of specifying everything from that advancement to the end.
The exact order the operation is carried out in is specified advancement > child > child's child > ... When it operates on a child that branches, it iterates through all its children before continuing.
Through(ResourceLocation)
Specifies an advancement, and adds or removes all its parent advancements, and all its child advancements.
Think of specifying everything through the specified advancement, going both backward and forward.
The exact order the operation is as if the command were executed with “until” specified, then with “from” specified: parent > parent's parent > ... > root > specified advancement > child > child's child > ...
Until(ResourceLocation)
Adds or removes an advancement and all its parent advancements until the root for addition/removal.
Think of specifying everything from the start until that advancement.
The exact order the operation is carried out in is: parent > parent's parent > ... > root > specified advancement.
Trait Implementations§
Source§impl Clone for AdvancementCommand
impl Clone for AdvancementCommand
Source§fn clone(&self) -> AdvancementCommand
fn clone(&self) -> AdvancementCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdvancementCommand
impl Debug for AdvancementCommand
Source§impl Display for AdvancementCommand
impl Display for AdvancementCommand
Source§impl HasMacro for AdvancementCommand
impl HasMacro for AdvancementCommand
Source§impl Hash for AdvancementCommand
impl Hash for AdvancementCommand
Source§impl PartialEq for AdvancementCommand
impl PartialEq for AdvancementCommand
impl Eq for AdvancementCommand
impl StructuralPartialEq for AdvancementCommand
Auto Trait Implementations§
impl Freeze for AdvancementCommand
impl RefUnwindSafe for AdvancementCommand
impl Send for AdvancementCommand
impl Sync for AdvancementCommand
impl Unpin for AdvancementCommand
impl UnwindSafe for AdvancementCommand
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
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>
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>
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