Skip to main content

NoiseSettings

Trait NoiseSettings 

Source
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§

Source

const MIN_Y: i32

Minimum Y coordinate for this dimension.

Source

const HEIGHT: i32

Total height of the world in blocks.

Source

const SEA_LEVEL: i32

Sea level Y coordinate.

Source

const CELL_WIDTH: i32

Cell width in blocks (XZ direction).

Source

const CELL_HEIGHT: i32

Cell height in blocks (Y direction).

Source

const AQUIFERS_ENABLED: bool

Whether aquifers are enabled for this dimension.

Source

const ORE_VEINS_ENABLED: bool

Whether ore veins are enabled for this dimension.

Source

const LEGACY_RANDOM_SOURCE: bool

Whether this dimension uses Java’s LCG random (true) or Xoroshiro (false).

Required Methods§

Source

fn default_block_id() -> BlockStateId

Get the default block state ID for this dimension.

Source

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".

Implementors§