Enum Despawn
#[non_exhaustive]pub enum Despawn {
Allow,
Default,
Deny,
}Expand description
What a mod answers a despawn check (MobDespawnEvent.Result).
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.
Allow
ALLOW: the mob despawns now.
Default
DEFAULT: vanilla’s Mob.checkDespawn decides.
Deny
DENY: the mob does not despawn.
Trait Implementations§
impl Copy for Despawn
impl Eq for Despawn
impl StructuralPartialEq for Despawn
Auto Trait Implementations§
impl Freeze for Despawn
impl RefUnwindSafe for Despawn
impl Send for Despawn
impl Sync for Despawn
impl Unpin for Despawn
impl UnsafeUnpin for Despawn
impl UnwindSafe for Despawn
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