pub struct WorldGenerationSettings {
pub generator: Identifier,
pub config: Value,
pub dimension_type: Identifier,
pub min_y: i32,
pub height: i32,
}Expand description
Persisted generator metadata used to reject incompatible config changes.
Fields§
§generator: IdentifierGenerator factory identifier.
config: ValueGenerator config after applying generator defaults.
dimension_type: IdentifierDimension type used by the generator output.
min_y: i32Minimum build Y for the dimension type.
height: i32Total build height for the dimension type.
Implementations§
Source§impl WorldGenerationSettings
impl WorldGenerationSettings
Sourcepub fn from_generator_config(
generator: Identifier,
config: &Value,
dimension_type: Identifier,
min_y: i32,
height: i32,
) -> Self
pub fn from_generator_config( generator: Identifier, config: &Value, dimension_type: Identifier, min_y: i32, height: i32, ) -> Self
Builds persisted generator metadata from the resolved startup config.
Trait Implementations§
Source§impl Clone for WorldGenerationSettings
impl Clone for WorldGenerationSettings
Source§fn clone(&self) -> WorldGenerationSettings
fn clone(&self) -> WorldGenerationSettings
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 moreSource§impl Debug for WorldGenerationSettings
impl Debug for WorldGenerationSettings
Source§impl<'de> Deserialize<'de> for WorldGenerationSettings
impl<'de> Deserialize<'de> for WorldGenerationSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorldGenerationSettings
impl PartialEq for WorldGenerationSettings
Source§impl Serialize for WorldGenerationSettings
impl Serialize for WorldGenerationSettings
impl StructuralPartialEq for WorldGenerationSettings
Auto Trait Implementations§
impl Freeze for WorldGenerationSettings
impl RefUnwindSafe for WorldGenerationSettings
impl Send for WorldGenerationSettings
impl Sync for WorldGenerationSettings
impl Unpin for WorldGenerationSettings
impl UnsafeUnpin for WorldGenerationSettings
impl UnwindSafe for WorldGenerationSettings
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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<>>