Enum SpawnLight
#[non_exhaustive]pub enum SpawnLight {
Any,
Dark,
Bright,
}Expand description
How bright a spot a mod entity type needs to spawn.
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.
Any
Any light level.
Dark
Dark enough for a monster (Monster.isDarkEnoughToSpawn: sky light, block light
and the dimension’s monster light test, which draw from the level’s random).
Bright
Bright enough for an animal (Animal.isBrightEnoughToSpawn: light above 8).
Trait Implementations§
§impl Clone for SpawnLight
impl Clone for SpawnLight
§fn clone(&self) -> SpawnLight
fn clone(&self) -> SpawnLight
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 SpawnLight
§impl Debug for SpawnLight
impl Debug for SpawnLight
impl Eq for SpawnLight
§impl PartialEq for SpawnLight
impl PartialEq for SpawnLight
impl StructuralPartialEq for SpawnLight
Auto Trait Implementations§
impl Freeze for SpawnLight
impl RefUnwindSafe for SpawnLight
impl Send for SpawnLight
impl Sync for SpawnLight
impl Unpin for SpawnLight
impl UnsafeUnpin for SpawnLight
impl UnwindSafe for SpawnLight
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