#[non_exhaustive]pub enum DespawnType {
LifetimeEnded,
Collided,
Unknown(u8),
}Expand description
Details on how the mob despawned.
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.
LifetimeEnded
The mob did not hit anything and will simply vanish.
Collided
The mob ran into something and exploded.
This is generally only used for missiles, some alternate clients may run into issues if used for box-type mobs.
Unknown(u8)
Trait Implementations§
Source§impl Clone for DespawnType
impl Clone for DespawnType
Source§fn clone(&self) -> DespawnType
fn clone(&self) -> DespawnType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DespawnType
impl Debug for DespawnType
Source§impl<'de> DeserializeV5<'de> for DespawnType
impl<'de> DeserializeV5<'de> for DespawnType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<DespawnType> for u8
impl From<DespawnType> for u8
Source§fn from(v: DespawnType) -> Self
fn from(v: DespawnType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DespawnType
impl From<u8> for DespawnType
Source§impl Hash for DespawnType
impl Hash for DespawnType
Source§impl PartialEq for DespawnType
impl PartialEq for DespawnType
Source§impl SerializeV5 for DespawnType
impl SerializeV5 for DespawnType
impl Copy for DespawnType
impl Eq for DespawnType
impl StructuralPartialEq for DespawnType
Auto Trait Implementations§
impl Freeze for DespawnType
impl RefUnwindSafe for DespawnType
impl Send for DespawnType
impl Sync for DespawnType
impl Unpin for DespawnType
impl UnwindSafe for DespawnType
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