Enum ReductionChange
#[non_exhaustive]pub enum ReductionChange {
Add(f32),
Scale(f32),
AtLeast(f32),
AtMost(f32),
}Expand description
How a modifier changes what a reduction took (NeoForge’s IReductionsModifier, as plain
data so it also crosses into a wasm mod).
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.
Add(f32)
Take this much more off (less when negative).
Scale(f32)
Take this many times as much.
AtLeast(f32)
Take at least this much.
AtMost(f32)
Take at most this much.
Trait Implementations§
§impl Clone for ReductionChange
impl Clone for ReductionChange
§fn clone(&self) -> ReductionChange
fn clone(&self) -> ReductionChange
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 ReductionChange
§impl Debug for ReductionChange
impl Debug for ReductionChange
§impl PartialEq for ReductionChange
impl PartialEq for ReductionChange
impl StructuralPartialEq for ReductionChange
§impl Wire for ReductionChange
impl Wire for ReductionChange
Auto Trait Implementations§
impl Freeze for ReductionChange
impl RefUnwindSafe for ReductionChange
impl Send for ReductionChange
impl Sync for ReductionChange
impl Unpin for ReductionChange
impl UnsafeUnpin for ReductionChange
impl UnwindSafe for ReductionChange
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