pub trait NoiseSettings: Send + Sync {
const MIN_Y: i32;
const HEIGHT: i32;
const SEA_LEVEL: i32;
const CELL_WIDTH: i32;
const CELL_HEIGHT: i32;
const AQUIFERS_ENABLED: bool;
const ORE_VEINS_ENABLED: bool;
const LEGACY_RANDOM_SOURCE: bool;
// Required methods
fn default_block_id() -> BlockStateId;
fn default_fluid_id() -> BlockStateId;
}Expand description
Noise settings for a dimension, parsed from the datapack.
These are compile-time constants generated from noise_settings JSON files.
Required Associated Constants§
Sourceconst CELL_WIDTH: i32
const CELL_WIDTH: i32
Cell width in blocks (XZ direction).
Sourceconst CELL_HEIGHT: i32
const CELL_HEIGHT: i32
Cell height in blocks (Y direction).
Sourceconst AQUIFERS_ENABLED: bool
const AQUIFERS_ENABLED: bool
Whether aquifers are enabled for this dimension.
Sourceconst ORE_VEINS_ENABLED: bool
const ORE_VEINS_ENABLED: bool
Whether ore veins are enabled for this dimension.
Sourceconst LEGACY_RANDOM_SOURCE: bool
const LEGACY_RANDOM_SOURCE: bool
Whether this dimension uses Java’s LCG random (true) or Xoroshiro (false).
Required Methods§
Sourcefn default_block_id() -> BlockStateId
fn default_block_id() -> BlockStateId
Get the default block state ID for this dimension.
Sourcefn default_fluid_id() -> BlockStateId
fn default_fluid_id() -> BlockStateId
Get the default fluid state ID for this dimension.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".