Enum PhantomSpawnResult
#[non_exhaustive]pub enum PhantomSpawnResult {
Allow,
Default,
Deny,
}Expand description
PlayerSpawnPhantomsEvent.Result: whether the phantom spawner tries a spawn near a player.
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
Always try, skipping the skylight and sea level check.
Default
Try only above sea level with the sky in view.
Deny
Never try.
Trait Implementations§
§impl Clone for PhantomSpawnResult
impl Clone for PhantomSpawnResult
§fn clone(&self) -> PhantomSpawnResult
fn clone(&self) -> PhantomSpawnResult
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 PhantomSpawnResult
§impl Debug for PhantomSpawnResult
impl Debug for PhantomSpawnResult
impl Eq for PhantomSpawnResult
§impl PartialEq for PhantomSpawnResult
impl PartialEq for PhantomSpawnResult
impl StructuralPartialEq for PhantomSpawnResult
Auto Trait Implementations§
impl Freeze for PhantomSpawnResult
impl RefUnwindSafe for PhantomSpawnResult
impl Send for PhantomSpawnResult
impl Sync for PhantomSpawnResult
impl Unpin for PhantomSpawnResult
impl UnsafeUnpin for PhantomSpawnResult
impl UnwindSafe for PhantomSpawnResult
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