Enum BiomeModifierError
#[non_exhaustive]pub enum BiomeModifierError {
InvalidId,
Duplicate,
EmptyList,
InvalidName,
UnknownStep,
InvalidSpawner,
InvalidCost,
InvalidValue,
}Expand description
Why a biome modifier was refused
(Registrar::declare_biome_modifier).
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.
InvalidId
The modifier’s own id is empty or in a namespace the declaring mod does not own.
Duplicate
Another modifier of the mod has the id.
EmptyList
A list that must name something is empty.
InvalidName
An id or tag is not namespaced (mymod:thing, a tag with a leading #).
UnknownStep
A generation step name vanilla does not have.
InvalidSpawner
A spawner outside signed integer bounds, with an empty group, or inverted group bounds.
InvalidCost
A spawn cost that is not a finite number.
InvalidValue
A climate number that is not finite, a colour above 0xFFFFFF, or a temperature modifier
other than none or frozen.
Trait Implementations§
§impl Clone for BiomeModifierError
impl Clone for BiomeModifierError
§fn clone(&self) -> BiomeModifierError
fn clone(&self) -> BiomeModifierError
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 more§impl Debug for BiomeModifierError
impl Debug for BiomeModifierError
impl Eq for BiomeModifierError
§impl PartialEq for BiomeModifierError
impl PartialEq for BiomeModifierError
impl StructuralPartialEq for BiomeModifierError
Auto Trait Implementations§
impl Freeze for BiomeModifierError
impl RefUnwindSafe for BiomeModifierError
impl Send for BiomeModifierError
impl Sync for BiomeModifierError
impl Unpin for BiomeModifierError
impl UnsafeUnpin for BiomeModifierError
impl UnwindSafe for BiomeModifierError
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