pub struct OverworldNoiseSettings;Expand description
Noise settings for this dimension, parsed from the datapack.
Implementations§
Source§impl OverworldNoiseSettings
impl OverworldNoiseSettings
Sourcepub const CELL_WIDTH: i32 = 4i32
pub const CELL_WIDTH: i32 = 4i32
Cell width in blocks (XZ).
Sourcepub const CELL_HEIGHT: i32 = 8i32
pub const CELL_HEIGHT: i32 = 8i32
Cell height in blocks (Y).
Sourcepub const AQUIFERS_ENABLED: bool = true
pub const AQUIFERS_ENABLED: bool = true
Whether aquifers are enabled.
Sourcepub const ORE_VEINS_ENABLED: bool = true
pub const ORE_VEINS_ENABLED: bool = true
Whether ore veins are enabled.
Sourcepub const LEGACY_RANDOM_SOURCE: bool = false
pub const LEGACY_RANDOM_SOURCE: bool = false
Whether this dimension uses Java’s LCG random (true) or Xoroshiro (false).
Sourcepub fn default_block_id() -> BlockStateId
pub fn default_block_id() -> BlockStateId
Get the default block state ID for this dimension.
Sourcepub fn default_fluid_id() -> BlockStateId
pub fn default_fluid_id() -> BlockStateId
Get the default fluid state ID for this dimension.
Trait Implementations§
Source§impl NoiseSettings for OverworldNoiseSettings
impl NoiseSettings for OverworldNoiseSettings
Source§const CELL_WIDTH: i32 = 4i32
const CELL_WIDTH: i32 = 4i32
Cell width in blocks (XZ direction).
Source§const CELL_HEIGHT: i32 = 8i32
const CELL_HEIGHT: i32 = 8i32
Cell height in blocks (Y direction).
Source§const AQUIFERS_ENABLED: bool = true
const AQUIFERS_ENABLED: bool = true
Whether aquifers are enabled for this dimension.
Source§const ORE_VEINS_ENABLED: bool = true
const ORE_VEINS_ENABLED: bool = true
Whether ore veins are enabled for this dimension.
Source§const LEGACY_RANDOM_SOURCE: bool = false
const LEGACY_RANDOM_SOURCE: bool = false
Whether this dimension uses Java’s LCG random (true) or Xoroshiro (false).
Source§fn default_block_id() -> BlockStateId
fn default_block_id() -> BlockStateId
Get the default block state ID for this dimension.
Source§fn default_fluid_id() -> BlockStateId
fn default_fluid_id() -> BlockStateId
Get the default fluid state ID for this dimension.
Auto Trait Implementations§
impl Freeze for OverworldNoiseSettings
impl RefUnwindSafe for OverworldNoiseSettings
impl Send for OverworldNoiseSettings
impl Sync for OverworldNoiseSettings
impl Unpin for OverworldNoiseSettings
impl UnsafeUnpin for OverworldNoiseSettings
impl UnwindSafe for OverworldNoiseSettings
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
§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<>>