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: IVec3,
},
ConcentricRings {
distance: i32,
spread: i32,
count: i32,
preferred_biomes: Vec<Identifier>,
salt: i32,
frequency: f32,
frequency_reduction_method: FrequencyMethodData,
locate_offset: IVec3,
},
}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).
§
locate_offset: IVec3Block offset from the placement chunk used by /locate.
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.
§
locate_offset: IVec3Block offset from the placement chunk used by /locate.
Trait Implementations§
Source§impl Clone for PlacementData
impl Clone for PlacementData
Auto 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
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<>>