pub 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<Offset>,
},
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§
Source§impl Clone for PlacementModifier
impl Clone for PlacementModifier
Source§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