Interface NoiseRouter
- All Superinterfaces:
Wrapper
The noise router is a collection of density functions.
Density functions compute a value for each block position.
They are used for terrain generation, biome layout, aquifers, ore veins, and more.
A noise router is a part of a dimension's noise settings.
- Since:
- 2.4.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbarrier()Affects whether aquifers and open cave areas are separated; larger values make separation more likely.static NoiseRouter.Builderbuilder()Creates a builder for a noise router.The continentalness values, used for biome placement only.static NoiseRouterReads a Minecraft noise router.depth()The depth values, used for biome placement and aquifer generation.erosion()The erosion values, used for biome placement and aquifer generation.The main density function deciding whether each position is solid or air.Affects the probability of an aquifer generating liquid in a cave; larger values make liquid more likely.Affects the height of an aquifer's liquid surface at a horizontal position; smaller values favor lower heights.lava()Affects whether an aquifer uses lava instead of water; the threshold is0.3.static NoiseRouterof(DensityFunction barrier, DensityFunction fluidLevelFloodedness, DensityFunction fluidLevelSpread, DensityFunction lava, DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction preliminarySurfaceLevel, DensityFunction finalDensity, DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap) Creates a new noise router from its density function slots.A 2D density function (sampled atY=0) giving the Y-level of the preliminary surface, generally below the actual terrain height.ridges()The weirdness values, used for biome placement only.The temperature values, used for biome placement only.default NoiseRouter.BuilderConverts this noise router back to a builder.The humidity values, used for biome placement only.veinGap()Affects which blocks in a vein become ore blocks rather than the vein's stone block.Controls which blocks belong to a vein.Affects ore vein type, vertical range and richness, selecting between copper and iron veins by Y-level and noise value.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
barrier
Affects whether aquifers and open cave areas are separated; larger values make separation more likely.- Returns:
- the barrier density function
- Since:
- 2.4.0
-
fluidLevelFloodedness
Affects the probability of an aquifer generating liquid in a cave; larger values make liquid more likely. The value is clamped to the range[-1.0, 1.0].- Returns:
- the fluid level floodedness density function
- Since:
- 2.4.0
-
fluidLevelSpread
Affects the height of an aquifer's liquid surface at a horizontal position; smaller values favor lower heights.- Returns:
- the fluid level spread density function
- Since:
- 2.4.0
-
lava
Affects whether an aquifer uses lava instead of water; the threshold is0.3.- Returns:
- the lava density function
- Since:
- 2.4.0
-
temperature
The temperature values, used for biome placement only. Like the other climate slots, this does not affect terrain shape.- Returns:
- the temperature density function
- Since:
- 2.4.0
-
vegetation
The humidity values, used for biome placement only.- Returns:
- the vegetation density function
- Since:
- 2.4.0
-
continents
The continentalness values, used for biome placement only.- Returns:
- the continents density function
- Since:
- 2.4.0
-
erosion
The erosion values, used for biome placement and aquifer generation.- Returns:
- the erosion density function
- Since:
- 2.4.0
-
depth
The depth values, used for biome placement and aquifer generation.- Returns:
- the depth density function
- Since:
- 2.4.0
-
ridges
The weirdness values, used for biome placement only.- Returns:
- the ridges density function
- Since:
- 2.4.0
-
preliminarySurfaceLevel
A 2D density function (sampled atY=0) giving the Y-level of the preliminary surface, generally below the actual terrain height. Used by aquifer generation and surface rules.- Returns:
- the preliminary surface level density function
- Since:
- 2.4.0
-
finalDensity
The main density function deciding whether each position is solid or air. Where positive, the default block is placed (later replaceable by surface rules); otherwise air or fluid is placed by the aquifer logic.- Returns:
- the final density density function
- Since:
- 2.4.0
-
veinToggle
Affects ore vein type, vertical range and richness, selecting between copper and iron veins by Y-level and noise value.- Returns:
- the vein toggle density function
- Since:
- 2.4.0
-
veinRidged
Controls which blocks belong to a vein. At or above0.0the block is not part of a vein; below0.0it has a 30% chance to be replaced by the vein's filler or an ore block.- Returns:
- the vein ridged density function
- Since:
- 2.4.0
-
veinGap
Affects which blocks in a vein become ore blocks rather than the vein's stone block.- Returns:
- the vein gap density function
- Since:
- 2.4.0
-
toBuilder
Converts this noise router back to a builder.- Returns:
- a new builder with these values
- Since:
- 3.3.0
-
of
@AsOf("2.4.0") static NoiseRouter of(DensityFunction barrier, DensityFunction fluidLevelFloodedness, DensityFunction fluidLevelSpread, DensityFunction lava, DensityFunction temperature, DensityFunction vegetation, DensityFunction continents, DensityFunction erosion, DensityFunction depth, DensityFunction ridges, DensityFunction preliminarySurfaceLevel, DensityFunction finalDensity, DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap) Creates a new noise router from its density function slots.- Parameters:
barrier- the barrier density functionfluidLevelFloodedness- the fluid level floodedness density functionfluidLevelSpread- the fluid level spread density functionlava- the lava density functiontemperature- the temperature density functionvegetation- the vegetation density functioncontinents- the continents density functionerosion- the erosion density functiondepth- the depth density functionridges- the ridges density functionpreliminarySurfaceLevel- the preliminary surface level density functionfinalDensity- the final density density functionveinToggle- the vein toggle density functionveinRidged- the vein ridged density functionveinGap- the vein gap density function- Returns:
- a new noise router
- Since:
- 2.4.0
-
decode
Reads a Minecraft noise router.- Parameters:
minecraftRouter- the noise router to read- Returns:
- the decoded noise router
- Since:
- 3.3.0
-
builder
Creates a builder for a noise router.- Returns:
- a new builder
- Since:
- 2.4.0
-