pub struct ItemPredicate {
pub count_min: Option<i32>,
pub count_max: Option<i32>,
pub has_components: &'static [Identifier],
}Expand description
Predicate for matching items (vanilla net.minecraft.advancements.predicates.ItemPredicate),
used by the minecraft:filtered loot function’s item_filter.
Fields§
§count_min: Option<i32>§count_max: Option<i32>§has_components: &'static [Identifier]Implementations§
Trait Implementations§
Source§impl Clone for ItemPredicate
impl Clone for ItemPredicate
Auto Trait Implementations§
impl Freeze for ItemPredicate
impl RefUnwindSafe for ItemPredicate
impl Send for ItemPredicate
impl Sync for ItemPredicate
impl Unpin for ItemPredicate
impl UnsafeUnpin for ItemPredicate
impl UnwindSafe for ItemPredicate
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> 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<>>