pub struct CarverConfiguration {
pub probability: f32,
pub y: HeightProvider,
pub y_scale: FloatProvider,
pub lava_level: VerticalAnchor,
pub replaceable_tag: Identifier,
}Expand description
Shared per-carver configuration fields present on every carver type.
Mirrors vanilla’s CarverConfiguration. The replaceable block set is
stored as a tag identifier (e.g. minecraft:overworld_carver_replaceables)
and resolved against BlockRegistry::is_in_tag at carve time.
Fields§
§probability: f32Per-chunk start probability (in [0, 1]).
y: HeightProviderCarver origin Y coordinate provider.
y_scale: FloatProviderVertical-stretch multiplier for carved ellipsoids.
lava_level: VerticalAnchorAny block carved at or below this Y becomes lava instead of air.
replaceable_tag: IdentifierTag of blocks the carver is allowed to replace.
Trait Implementations§
Source§impl Clone for CarverConfiguration
impl Clone for CarverConfiguration
Source§fn clone(&self) -> CarverConfiguration
fn clone(&self) -> CarverConfiguration
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 moreAuto Trait Implementations§
impl Freeze for CarverConfiguration
impl RefUnwindSafe for CarverConfiguration
impl Send for CarverConfiguration
impl Sync for CarverConfiguration
impl Unpin for CarverConfiguration
impl UnsafeUnpin for CarverConfiguration
impl UnwindSafe for CarverConfiguration
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