pub struct ResolvedWorldConfig {
pub key: Identifier,
pub domain: String,
pub name: String,
pub generator: Identifier,
pub generator_config: ValidatedWorldGeneratorConfig,
pub seed: i64,
pub default_gamemode: GameType,
pub difficulty: Difficulty,
pub storage: StorageSelection,
pub nether_portal_target: Option<Identifier>,
pub end_portal_target: Option<Identifier>,
}Expand description
Validated world startup config.
Fields§
§key: IdentifierLoaded world identifier (domain:world).
domain: StringDomain name.
name: StringWorld path/name inside the domain.
generator: IdentifierGenerator factory identifier.
generator_config: ValidatedWorldGeneratorConfigStrictly validated generator config.
seed: i64Resolved world seed.
default_gamemode: GameTypeDefault game mode for first-visit player data in this world.
difficulty: DifficultyDifficulty for new level data in this world.
storage: StorageSelectionResolved world storage selection.
nether_portal_target: Option<Identifier>Explicit same-domain Nether portal target, if configured.
end_portal_target: Option<Identifier>Explicit same-domain End portal entry target, if configured.
Trait Implementations§
Source§impl Clone for ResolvedWorldConfig
impl Clone for ResolvedWorldConfig
Source§fn clone(&self) -> ResolvedWorldConfig
fn clone(&self) -> ResolvedWorldConfig
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 ResolvedWorldConfig
impl RefUnwindSafe for ResolvedWorldConfig
impl Send for ResolvedWorldConfig
impl Sync for ResolvedWorldConfig
impl Unpin for ResolvedWorldConfig
impl UnsafeUnpin for ResolvedWorldConfig
impl UnwindSafe for ResolvedWorldConfig
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<>>