Enum SpawnSource
#[non_exhaustive]pub enum SpawnSource {
Block(BlockPos),
}Expand description
What spawned a mob, where EntitySpawnReason alone does not say (FinalizeSpawnEvent.getSpawner).
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 SpawnSource
impl Clone for SpawnSource
§fn clone(&self) -> SpawnSource
fn clone(&self) -> SpawnSource
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 SpawnSource
§impl Debug for SpawnSource
impl Debug for SpawnSource
impl Eq for SpawnSource
§impl PartialEq for SpawnSource
impl PartialEq for SpawnSource
impl StructuralPartialEq for SpawnSource
Auto Trait Implementations§
impl Freeze for SpawnSource
impl RefUnwindSafe for SpawnSource
impl Send for SpawnSource
impl Sync for SpawnSource
impl Unpin for SpawnSource
impl UnsafeUnpin for SpawnSource
impl UnwindSafe for SpawnSource
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