Enum SpawnCheck
#[non_exhaustive]pub enum SpawnCheck {
Succeed,
Default,
Fail,
}Expand description
What a mod answers a spawn check (MobSpawnEvent.PositionCheck.Result and
MobSpawnEvent.SpawnPlacementCheck.Result, one type for both).
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.
Succeed
SUCCEED: the check passes.
Default
DEFAULT: vanilla’s own answer stands.
Fail
FAIL: the check fails.
Trait Implementations§
§impl Clone for SpawnCheck
impl Clone for SpawnCheck
§fn clone(&self) -> SpawnCheck
fn clone(&self) -> SpawnCheck
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 SpawnCheck
§impl Debug for SpawnCheck
impl Debug for SpawnCheck
§impl Default for SpawnCheck
impl Default for SpawnCheck
§fn default() -> SpawnCheck
fn default() -> SpawnCheck
Returns the “default value” for a type. Read more
impl Eq for SpawnCheck
§impl PartialEq for SpawnCheck
impl PartialEq for SpawnCheck
impl StructuralPartialEq for SpawnCheck
Auto Trait Implementations§
impl Freeze for SpawnCheck
impl RefUnwindSafe for SpawnCheck
impl Send for SpawnCheck
impl Sync for SpawnCheck
impl Unpin for SpawnCheck
impl UnsafeUnpin for SpawnCheck
impl UnwindSafe for SpawnCheck
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