Enum SpawnPlacementType
#[non_exhaustive]pub enum SpawnPlacementType {
OnGround,
InWater,
InLava,
NoRestrictions,
}Expand description
Where a mod entity type stands to spawn (SpawnPlacementType):
SpawnPlacements.isSpawnPositionOk’s first check.
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.
OnGround
ON_GROUND: a block that is valid to spawn on below, free room at the feet and the head.
InWater
IN_WATER: a water block, with no redstone conductor above.
InLava
IN_LAVA: a lava block.
NoRestrictions
NO_RESTRICTIONS: anywhere.
Trait Implementations§
§impl Clone for SpawnPlacementType
impl Clone for SpawnPlacementType
§fn clone(&self) -> SpawnPlacementType
fn clone(&self) -> SpawnPlacementType
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 SpawnPlacementType
§impl Debug for SpawnPlacementType
impl Debug for SpawnPlacementType
impl Eq for SpawnPlacementType
§impl PartialEq for SpawnPlacementType
impl PartialEq for SpawnPlacementType
impl StructuralPartialEq for SpawnPlacementType
Auto Trait Implementations§
impl Freeze for SpawnPlacementType
impl RefUnwindSafe for SpawnPlacementType
impl Send for SpawnPlacementType
impl Sync for SpawnPlacementType
impl Unpin for SpawnPlacementType
impl UnsafeUnpin for SpawnPlacementType
impl UnwindSafe for SpawnPlacementType
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