Enum EffectApplicable
#[non_exhaustive]pub enum EffectApplicable {
Allow,
Deny,
}Expand description
The answer to mob_effect_applicable: whether an effect can land on an
entity. An unanswered hook defers to the vanilla tag check; Allow and
Deny override it, as NeoForge’s MobEffectEvent.Applicable.Result
does.
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§
§impl Clone for EffectApplicable
impl Clone for EffectApplicable
§fn clone(&self) -> EffectApplicable
fn clone(&self) -> EffectApplicable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EffectApplicable
§impl Debug for EffectApplicable
impl Debug for EffectApplicable
impl Eq for EffectApplicable
§impl PartialEq for EffectApplicable
impl PartialEq for EffectApplicable
impl StructuralPartialEq for EffectApplicable
Auto Trait Implementations§
impl Freeze for EffectApplicable
impl RefUnwindSafe for EffectApplicable
impl Send for EffectApplicable
impl Sync for EffectApplicable
impl Unpin for EffectApplicable
impl UnsafeUnpin for EffectApplicable
impl UnwindSafe for EffectApplicable
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