Skip to main content

CarveSkipChecker

Trait CarveSkipChecker 

Source
pub trait CarveSkipChecker {
    // Required method
    fn should_skip(&mut self, xd: f64, yd: f64, zd: f64, world_y: i32) -> bool;
}
Expand description

Predicate called inside the carver’s Y scan to decide whether a block is outside the carved shape for a given ellipsoid (cave floor cutoff, canyon width-by-height, etc). Matches vanilla’s WorldCarver.CarveSkipChecker.

Required Methods§

Source

fn should_skip(&mut self, xd: f64, yd: f64, zd: f64, world_y: i32) -> bool

xd, yd, zd are the ellipsoid-normalized offsets from the carver origin to this block’s center (see CarveRun::carve_ellipsoid); world_y is the absolute Y coordinate of the current block.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§