Enum PlacementModifier
pub(in worldgen::feature) enum PlacementModifier {
Show 15 variants
Biome,
BlockPredicateFilter {
predicate: BlockPredicate,
},
Count {
count: IntProvider,
},
CountOnEveryLayer {
count: IntProvider,
},
EnvironmentScan {
direction_of_search: Direction,
target_condition: BlockPredicate,
allowed_search_condition: Option<BlockPredicate>,
max_steps: i32,
},
FixedPlacement {
positions: Vec<IVec3>,
},
HeightRange {
height: HeightProvider,
},
Heightmap {
heightmap: FeatureHeightmap,
},
InSquare,
NoiseBasedCount {
noise_to_count_ratio: i32,
noise_factor: f64,
noise_offset: f64,
},
NoiseThresholdCount {
noise_level: f64,
below_noise: i32,
above_noise: i32,
},
RandomOffset {
xz_spread: IntProvider,
y_spread: IntProvider,
},
RarityFilter {
chance: i32,
},
SurfaceRelativeThresholdFilter {
heightmap: FeatureHeightmap,
min_inclusive: Option<i32>,
max_inclusive: Option<i32>,
},
SurfaceWaterDepthFilter {
max_water_depth: i32,
},
}Expand description
Feature placement modifiers.
Variants§
Biome
BlockPredicateFilter
Fields
§
predicate: BlockPredicateCount
Fields
§
count: IntProviderCountOnEveryLayer
Fields
§
count: IntProviderEnvironmentScan
FixedPlacement
HeightRange
Fields
§
height: HeightProviderHeightmap
Fields
§
heightmap: FeatureHeightmapInSquare
NoiseBasedCount
NoiseThresholdCount
RandomOffset
RarityFilter
SurfaceRelativeThresholdFilter
SurfaceWaterDepthFilter
Trait Implementations§
§impl Clone for PlacementModifier
impl Clone for PlacementModifier
§fn clone(&self) -> PlacementModifier
fn clone(&self) -> PlacementModifier
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 !RefUnwindSafe for PlacementModifier
impl !UnwindSafe for PlacementModifier
impl Freeze for PlacementModifier
impl Send for PlacementModifier
impl Sync for PlacementModifier
impl Unpin for PlacementModifier
impl UnsafeUnpin for PlacementModifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>