Enum MobFilter
#[non_exhaustive]pub enum MobFilter {
Player,
Species(Vec<String>),
}Expand description
The player, or mobs of the given species: the class filter of a
GoalSpec::NearestTarget and of a GoalSpec::AvoidEntity. The
species ids are namespaced (minecraft:zombie); a bare id reads as
minecraft:‘s, like the effects’ ids.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MobFilter
impl RefUnwindSafe for MobFilter
impl Send for MobFilter
impl Sync for MobFilter
impl Unpin for MobFilter
impl UnsafeUnpin for MobFilter
impl UnwindSafe for MobFilter
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