pub enum PlacementData {
RandomSpread {
spacing: i32,
separation: i32,
spread_type: SpreadTypeData,
salt: i32,
frequency: f32,
frequency_reduction_method: FrequencyMethodData,
exclusion_zone: Option<ExclusionZoneData>,
locate_offset: [i32; 3],
},
ConcentricRings {
distance: i32,
spread: i32,
count: i32,
preferred_biomes: Vec<Identifier>,
salt: i32,
frequency: f32,
frequency_reduction_method: FrequencyMethodData,
locate_offset: [i32; 3],
},
}Expand description
Placement configuration from the vanilla datapack.
Variants§
RandomSpread
Grid-based spread placement (minecraft:random_spread).
Fields
§
spread_type: SpreadTypeDataSpread type: "linear" or "triangular".
§
frequency_reduction_method: FrequencyMethodDataFrequency reduction method name. Default: "default".
§
exclusion_zone: Option<ExclusionZoneData>Exclusion zone: (other_set key, chunk_count).
ConcentricRings
Ring-based placement (minecraft:concentric_rings).
Fields
§
preferred_biomes: Vec<Identifier>Biomes that ring positions prefer to snap to.
§
frequency_reduction_method: FrequencyMethodDataFrequency reduction method name.
Trait Implementations§
Source§impl Clone for PlacementData
impl Clone for PlacementData
Source§fn clone(&self) -> PlacementData
fn clone(&self) -> PlacementData
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 PlacementData
impl RefUnwindSafe for PlacementData
impl Send for PlacementData
impl Sync for PlacementData
impl Unpin for PlacementData
impl UnsafeUnpin for PlacementData
impl UnwindSafe for PlacementData
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