Uses of Interface
net.minecraft.world.gen.densityfunction.DensityFunction
Package
Description
-
Uses of DensityFunction in net.minecraft.registry
Modifier and TypeFieldDescriptionstatic final RegistryKey<Registry<DensityFunction>>
RegistryKeys.DENSITY_FUNCTION
static final Registry<com.mojang.serialization.Codec<? extends DensityFunction>>
Registries.DENSITY_FUNCTION_TYPE
static final RegistryKey<Registry<com.mojang.serialization.Codec<? extends DensityFunction>>>
RegistryKeys.DENSITY_FUNCTION_TYPE
-
Uses of DensityFunction in net.minecraft.util.math.noise
Modifier and TypeMethodDescriptionCodecHolder<? extends DensityFunction>
InterpolatedNoiseSampler.getCodecHolder()
-
Uses of DensityFunction in net.minecraft.world.biome.source.util
Modifier and TypeFieldDescriptionprivate final DensityFunction
MultiNoiseUtil.MultiNoiseSampler.continentalness
The field for thecontinentalness
record component.private final DensityFunction
MultiNoiseUtil.MultiNoiseSampler.depth
The field for thedepth
record component.private final DensityFunction
MultiNoiseUtil.MultiNoiseSampler.erosion
The field for theerosion
record component.private final DensityFunction
MultiNoiseUtil.MultiNoiseSampler.humidity
The field for thehumidity
record component.private final DensityFunction
MultiNoiseUtil.MultiNoiseSampler.temperature
The field for thetemperature
record component.private final DensityFunction
MultiNoiseUtil.MultiNoiseSampler.weirdness
The field for theweirdness
record component.Modifier and TypeMethodDescriptionMultiNoiseUtil.MultiNoiseSampler.continentalness()
Returns the value of thecontinentalness
record component.MultiNoiseUtil.MultiNoiseSampler.depth()
Returns the value of thedepth
record component.MultiNoiseUtil.MultiNoiseSampler.erosion()
Returns the value of theerosion
record component.MultiNoiseUtil.MultiNoiseSampler.humidity()
Returns the value of thehumidity
record component.MultiNoiseUtil.MultiNoiseSampler.temperature()
Returns the value of thetemperature
record component.MultiNoiseUtil.MultiNoiseSampler.weirdness()
Returns the value of theweirdness
record component.Modifier and TypeMethodDescriptionstatic boolean
VanillaBiomeParameters.inDeepDarkParameters
(DensityFunction erosion, DensityFunction depth, DensityFunction.NoisePos pos) ModifierConstructorDescriptionMultiNoiseSampler
(DensityFunction densityFunction, DensityFunction densityFunction2, DensityFunction densityFunction3, DensityFunction densityFunction4, DensityFunction densityFunction5, DensityFunction densityFunction6, List<MultiNoiseUtil.NoiseHypercube> list) -
Uses of DensityFunction in net.minecraft.world.gen
Modifier and TypeClassDescriptionclass
Applies weights to noise values if they are near structures, placing terrain under them and hollowing out the space above them.Modifier and TypeMethodDescriptionprotected static ChunkNoiseSampler.BlockStateSampler
OreVeinSampler.create
(DensityFunction veinToggle, DensityFunction veinRidged, DensityFunction veinGap, RandomSplitter randomDeriver) -
Uses of DensityFunction in net.minecraft.world.gen.chunk
Modifier and TypeInterfaceDescriptionprivate static interface
Modifier and TypeClassDescriptionprivate class
private class
private static class
private class
private class
class
private class
Modifier and TypeFieldDescriptionprivate final DensityFunction
AquiferSampler.Impl.barrierNoise
private final DensityFunction
ChunkNoiseSampler.Cache2D.delegate
private final DensityFunction
ChunkNoiseSampler.CacheOnce.delegate
(package private) final DensityFunction
ChunkNoiseSampler.CellCache.delegate
private final DensityFunction
ChunkNoiseSampler.DensityInterpolator.delegate
private final DensityFunction
ChunkNoiseSampler.FlatCache.delegate
private final DensityFunction
AquiferSampler.Impl.depthDensityFunction
private final DensityFunction
AquiferSampler.Impl.erosionDensityFunction
private final DensityFunction
AquiferSampler.Impl.fluidLevelFloodednessNoise
private final DensityFunction
AquiferSampler.Impl.fluidLevelSpreadNoise
private final DensityFunction
AquiferSampler.Impl.fluidTypeNoise
private final DensityFunction
ChunkNoiseSampler.initialDensityWithoutJaggedness
Modifier and TypeFieldDescriptionprivate final Map<DensityFunction,
DensityFunction> ChunkNoiseSampler.actualDensityFunctionCache
private final Map<DensityFunction,
DensityFunction> ChunkNoiseSampler.actualDensityFunctionCache
Modifier and TypeMethodDescriptionChunkNoiseSampler.BlendAlphaDensityFunction.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.ChunkNoiseSampler.BlendOffsetDensityFunction.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.protected DensityFunction
ChunkNoiseSampler.getActualDensityFunction
(DensityFunction function) Returns the actual density function for a given density function.private DensityFunction
ChunkNoiseSampler.getActualDensityFunctionImpl
(DensityFunction function) Returns the actual density function for a given density function.ChunkNoiseSampler.BlendAlphaDensityFunction.wrapped()
ChunkNoiseSampler.BlendOffsetDensityFunction.wrapped()
ChunkNoiseSampler.Cache2D.wrapped()
ChunkNoiseSampler.CacheOnce.wrapped()
ChunkNoiseSampler.CellCache.wrapped()
ChunkNoiseSampler.DensityInterpolator.wrapped()
ChunkNoiseSampler.FlatCache.wrapped()
ChunkNoiseSampler.ParentedNoiseType.wrapped()
Modifier and TypeMethodDescriptionCodecHolder<? extends DensityFunction>
ChunkNoiseSampler.BlendAlphaDensityFunction.getCodecHolder()
CodecHolder<? extends DensityFunction>
ChunkNoiseSampler.BlendOffsetDensityFunction.getCodecHolder()
Modifier and TypeMethodDescriptionvoid
ChunkNoiseSampler.fill
(double[] densities, DensityFunction densityFunction) Fills the density array using a density function.protected DensityFunction
ChunkNoiseSampler.getActualDensityFunction
(DensityFunction function) Returns the actual density function for a given density function.private DensityFunction
ChunkNoiseSampler.getActualDensityFunctionImpl
(DensityFunction function) Returns the actual density function for a given density function.ModifierConstructorDescription(package private)
Cache2D
(DensityFunction delegate) (package private)
CacheOnce
(DensityFunction delegate) (package private)
CellCache
(DensityFunction delegate) (package private)
DensityInterpolator
(DensityFunction delegate) (package private)
FlatCache
(DensityFunction delegate, boolean sample) -
Uses of DensityFunction in net.minecraft.world.gen.densityfunction
Modifier and TypeInterfaceDescriptionstatic interface
Represents a density function that has no other density functions as an argument, and provides default implementations ofDensityFunction.Base.fill(double[], net.minecraft.world.gen.densityfunction.DensityFunction.EachApplier)
andDensityFunction.Base.apply(DensityFunctionVisitor)
for this case.static interface
(package private) static interface
(package private) static interface
private static interface
private static interface
static interface
Modifier and TypeClassDescriptionprotected static enum
private static final record
protected static enum
private static final record
protected static enum
protected static final record
private static final record
protected static final class
private static final record
protected static final record
private static final record
static final record
protected static final record
protected static final record
protected static final record
protected static final record
static final record
protected static final record
protected static final record
protected static final record
private static final record
Modifier and TypeFieldDescriptionprivate final DensityFunction
DensityFunctionTypes.BinaryOperation.argument1
The field for theargument1
record component.private final DensityFunction
DensityFunctionTypes.BinaryOperation.argument2
The field for theargument2
record component.private final DensityFunction
DensityFunctionTypes.BlendDensity.input
The field for theinput
record component.private final DensityFunction
DensityFunctionTypes.Clamp.input
The field for theinput
record component.private final DensityFunction
DensityFunctionTypes.LinearOperation.input
The field for theinput
record component.private final DensityFunction
DensityFunctionTypes.RangeChoice.input
The field for theinput
record component.private final DensityFunction
DensityFunctionTypes.UnaryOperation.input
The field for theinput
record component.private final DensityFunction
DensityFunctionTypes.WeirdScaledSampler.input
The field for theinput
record component.private final DensityFunction
DensityFunctionTypes.ShiftedNoise.shiftX
The field for theshiftX
record component.private final DensityFunction
DensityFunctionTypes.ShiftedNoise.shiftY
The field for theshiftY
record component.private final DensityFunction
DensityFunctionTypes.ShiftedNoise.shiftZ
The field for theshiftZ
record component.private static final DensityFunction
DensityFunctions.TEN_FUNCTION
private final DensityFunction
DensityFunctionTypes.RangeChoice.whenInRange
The field for thewhenInRange
record component.private final DensityFunction
DensityFunctionTypes.RangeChoice.whenOutOfRange
The field for thewhenOutOfRange
record component.private final DensityFunction
DensityFunctionTypes.Wrapping.wrapped
The field for thewrapped
record component.private static final DensityFunction
DensityFunctions.ZERO_FUNCTION
Modifier and TypeFieldDescriptionprivate static final RegistryKey<DensityFunction>
DensityFunctions.BASE_3D_NOISE_END
private static final RegistryKey<DensityFunction>
DensityFunctions.BASE_3D_NOISE_NETHER
private static final RegistryKey<DensityFunction>
DensityFunctions.BASE_3D_NOISE_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.CAVES_ENTRANCES_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.CAVES_NOODLE_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.CAVES_PILLARS_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.CAVES_SPAGHETTI_2D_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.CAVES_SPAGHETTI_2D_THICKNESS_MODULATOR_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.CAVES_SPAGHETTI_ROUGHNESS_FUNCTION_OVERWORLD
static final com.mojang.serialization.Codec<DensityFunction>
DensityFunction.CODEC
static final CodecHolder<DensityFunction>
DensityFunctionTypes.BlendAlpha.CODEC
static final CodecHolder<DensityFunction>
DensityFunctionTypes.BlendOffset.CODEC
static final com.mojang.serialization.Codec<DensityFunction>
DensityFunctionTypes.CODEC
static final CodecHolder<DensityFunction>
DensityFunctionTypes.Beardifying.CODEC_HOLDER
static final RegistryKey<DensityFunction>
DensityFunctions.CONTINENTS_OVERWORLD
static final RegistryKey<DensityFunction>
DensityFunctions.CONTINENTS_OVERWORLD_LARGE_BIOME
static final RegistryKey<DensityFunction>
DensityFunctions.DEPTH_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.DEPTH_OVERWORLD_AMPLIFIED
private static final RegistryKey<DensityFunction>
DensityFunctions.DEPTH_OVERWORLD_LARGE_BIOME
private static final com.mojang.serialization.Codec<DensityFunction>
DensityFunctionTypes.DYNAMIC_RANGE
static final RegistryKey<DensityFunction>
DensityFunctions.EROSION_OVERWORLD
static final RegistryKey<DensityFunction>
DensityFunctions.EROSION_OVERWORLD_LARGE_BIOME
static final RegistryKey<DensityFunction>
DensityFunctions.FACTOR_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.FACTOR_OVERWORLD_AMPLIFIED
private static final RegistryKey<DensityFunction>
DensityFunctions.FACTOR_OVERWORLD_LARGE_BIOME
private final RegistryEntry<DensityFunction>
DensityFunctionTypes.RegistryEntryHolder.function
The field for thefunction
record component.private final RegistryEntry<DensityFunction>
DensityFunctionTypes.Spline.DensityFunctionWrapper.function
The field for thefunction
record component.static final com.mojang.serialization.Codec<DensityFunction>
DensityFunction.FUNCTION_CODEC
static final RegistryKey<DensityFunction>
DensityFunctions.JAGGEDNESS_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.JAGGEDNESS_OVERWORLD_AMPLIFIED
private static final RegistryKey<DensityFunction>
DensityFunctions.JAGGEDNESS_OVERWORLD_LARGE_BIOME
static final RegistryKey<DensityFunction>
DensityFunctions.OFFSET_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.OFFSET_OVERWORLD_AMPLIFIED
private static final RegistryKey<DensityFunction>
DensityFunctions.OFFSET_OVERWORLD_LARGE_BIOME
static final com.mojang.serialization.Codec<RegistryEntry<DensityFunction>>
DensityFunction.REGISTRY_ENTRY_CODEC
static final RegistryKey<DensityFunction>
DensityFunctions.RIDGES_FOLDED_OVERWORLD
static final RegistryKey<DensityFunction>
DensityFunctions.RIDGES_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.SHIFT_X
private static final RegistryKey<DensityFunction>
DensityFunctions.SHIFT_Z
private static final RegistryKey<DensityFunction>
DensityFunctions.SLOPED_CHEESE_END
private static final RegistryKey<DensityFunction>
DensityFunctions.SLOPED_CHEESE_OVERWORLD
private static final RegistryKey<DensityFunction>
DensityFunctions.SLOPED_CHEESE_OVERWORLD_AMPLIFIED
private static final RegistryKey<DensityFunction>
DensityFunctions.SLOPED_CHEESE_OVERWORLD_LARGE_BIOME
private static final RegistryKey<DensityFunction>
DensityFunctions.Y
private static final RegistryKey<DensityFunction>
DensityFunctions.ZERO
Modifier and TypeMethodDescriptiondefault DensityFunction
DensityFunction.abs()
static DensityFunction
DensityFunctionTypes.add
(DensityFunction a, DensityFunction b) DensityFunction.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.default DensityFunction
DensityFunction.Base.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunction.DensityFunctionVisitor.apply
(DensityFunction densityFunction) DensityFunctionTypes.BinaryOperation.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.BlendDensity.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.Clamp.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.LinearOperation.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.Noise.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.RangeChoice.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.RegistryEntryHolder.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.Shift.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.ShiftA.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.ShiftB.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.ShiftedNoise.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.Spline.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.DensityFunctionTypes.WeirdScaledSampler.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.default DensityFunction
DensityFunctionTypes.Wrapper.apply
(DensityFunction.DensityFunctionVisitor visitor) Applies the visitor to every child density function andthis
.private static DensityFunction
DensityFunctions.applyBlendDensity
(DensityFunction density) private static DensityFunction
DensityFunctions.applyBlending
(DensityFunction function, DensityFunction blendOffset) private static DensityFunction
DensityFunctions.applyCavesSlides
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, int minY, int maxY) Applies the slides for the nether and the caves world type.private static DensityFunction
DensityFunctions.applyEndSlides
(DensityFunction slopedCheese) Applies the slides for The End.private static DensityFunction
DensityFunctions.applyFloatingIslandsSlides
(DensityFunction function, int minY, int maxY) Applies the slides for The End or the floating islands world type.private static DensityFunction
DensityFunctions.applySlides
(DensityFunction density, int minY, int maxY, int topRelativeMinY, int topRelativeMaxY, double topDensity, int bottomRelativeMinY, int bottomRelativeMaxY, double bottomDensity) Interpolates the density at the top and bottom of the world.private static DensityFunction
DensityFunctions.applySurfaceSlides
(boolean amplified, DensityFunction density) Applies the slides for the overworld and the surface world type.DensityFunctionTypes.BinaryOperation.argument1()
DensityFunctionTypes.BinaryOperationLike.argument1()
DensityFunctionTypes.LinearOperation.argument1()
DensityFunctionTypes.BinaryOperation.argument2()
DensityFunctionTypes.BinaryOperationLike.argument2()
DensityFunctionTypes.LinearOperation.argument2()
static DensityFunction
DensityFunctionTypes.blendAlpha()
static DensityFunction
DensityFunctionTypes.blendDensity
(DensityFunction input) static DensityFunction
DensityFunctionTypes.blendOffset()
static DensityFunction
DensityFunctionTypes.cache2d
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.cacheAllInCell
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.cacheOnce
(DensityFunction inputFunction) default DensityFunction
DensityFunction.clamp
(double min, double max) static DensityFunction
DensityFunctionTypes.constant
(double density) private static DensityFunction
DensityFunctions.createCavePillarsOverworldFunction
(RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createCavesEntrancesOverworldFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createCavesFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup, DensityFunction slopedCheese) private static DensityFunction
DensityFunctions.createCavesNoodleOverworldFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createCavesSpaghetti2dOverworldFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createCavesSpaghettiRoughnessOverworldFunction
(RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createInitialDensityFunction
(DensityFunction factor, DensityFunction depth) private static DensityFunction
DensityFunctions.createRidgesFoldedOverworldFunction
(DensityFunction input) default DensityFunction
DensityFunction.cube()
static DensityFunction
DensityFunctionTypes.endIslands
(long seed) private static DensityFunction
DensityFunctions.entryHolder
(RegistryEntryLookup<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key) static DensityFunction
DensityFunctionTypes.flatCache
(DensityFunction inputFunction) default DensityFunction
DensityFunction.halfNegative()
DensityFunctionTypes.BlendDensity.input()
DensityFunctionTypes.Clamp.input()
DensityFunctionTypes.LinearOperation.input()
DensityFunctionTypes.Positional.input()
DensityFunctionTypes.RangeChoice.input()
Returns the value of theinput
record component.DensityFunctionTypes.Unary.input()
DensityFunctionTypes.UnaryOperation.input()
DensityFunctionTypes.WeirdScaledSampler.input()
static DensityFunction
DensityFunctionTypes.interpolated
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.lerp
(DensityFunction delta, double start, DensityFunction end) Creates a new density function which interpolates between the values ofstart
andend
, based ondelta
.static DensityFunction
DensityFunctionTypes.lerp
(DensityFunction delta, DensityFunction start, DensityFunction end) Creates a new density function which interpolates between the values ofstart
andend
, based ondelta
.private static DensityFunction
DensityFunctionTypes.mapRange
(DensityFunction function, double min, double max) Creates a new density function based onfunction
, but with a different range.static DensityFunction
DensityFunctionTypes.max
(DensityFunction a, DensityFunction b) static DensityFunction
DensityFunctionTypes.min
(DensityFunction a, DensityFunction b) static DensityFunction
DensityFunctionTypes.mul
(DensityFunction a, DensityFunction b) static DensityFunction
DensityFunctionTypes.noise
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunction
DensityFunctionTypes.noise
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleY) static DensityFunction
DensityFunctionTypes.noise
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleXz, double scaleY) static DensityFunction
DensityFunctionTypes.noiseInRange
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double min, double max) static DensityFunction
DensityFunctionTypes.noiseInRange
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleY, double min, double max) static DensityFunction
DensityFunctionTypes.noiseInRange
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleXz, double scaleY, double min, double max) default DensityFunction
DensityFunction.quarterNegative()
static DensityFunction
DensityFunctionTypes.rangeChoice
(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) private static DensityFunction
DensityFunctions.registerAndGetHolder
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key, DensityFunction densityFunction) static DensityFunction
DensityFunctionTypes.shift
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunction
DensityFunctionTypes.shiftA
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunction
DensityFunctionTypes.shiftB
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunction
DensityFunctionTypes.shiftedNoise
(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) DensityFunctionTypes.ShiftedNoise.shiftX()
Returns the value of theshiftX
record component.DensityFunctionTypes.ShiftedNoise.shiftY()
Returns the value of theshiftY
record component.DensityFunctionTypes.ShiftedNoise.shiftZ()
Returns the value of theshiftZ
record component.static DensityFunction
DensityFunctionTypes.spline
(Spline<DensityFunctionTypes.Spline.SplinePos, DensityFunctionTypes.Spline.DensityFunctionWrapper> spline) default DensityFunction
DensityFunction.square()
default DensityFunction
DensityFunction.squeeze()
static DensityFunction
DensityFunctionTypes.unary
(DensityFunction input, DensityFunctionTypes.UnaryOperation.Type type) private static DensityFunction
DensityFunctions.verticalRangeChoice
(DensityFunction y, DensityFunction whenInRange, int minInclusive, int maxInclusive, int whenOutOfRange) static DensityFunction
DensityFunctionTypes.weirdScaledSampler
(DensityFunction input, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> parameters, DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper mapper) DensityFunctionTypes.RangeChoice.whenInRange()
Returns the value of thewhenInRange
record component.DensityFunctionTypes.RangeChoice.whenOutOfRange()
Returns the value of thewhenOutOfRange
record component.DensityFunctionTypes.Wrapper.wrapped()
DensityFunctionTypes.Wrapping.wrapped()
static DensityFunction
DensityFunctionTypes.yClampedGradient
(int fromY, int toY, double fromValue, double toValue) static DensityFunction
DensityFunctionTypes.zero()
Modifier and TypeMethodDescriptionstatic RegistryEntry<? extends DensityFunction>
DensityFunctions.bootstrap
(Registerable<DensityFunction> densityFunctionRegisterable) DensityFunctionTypes.RegistryEntryHolder.function()
Returns the value of thefunction
record component.DensityFunctionTypes.Spline.DensityFunctionWrapper.function()
Returns the value of thefunction
record component.CodecHolder<? extends DensityFunction>
DensityFunction.getCodecHolder()
default CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Beardifying.getCodecHolder()
default CodecHolder<? extends DensityFunction>
DensityFunctionTypes.BinaryOperationLike.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.BlendAlpha.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.BlendDensity.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.BlendOffset.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Clamp.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Constant.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.EndIslands.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Noise.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.RangeChoice.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.RegistryEntryHolder.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Shift.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.ShiftA.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.ShiftB.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.ShiftedNoise.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Spline.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.UnaryOperation.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.WeirdScaledSampler.getCodecHolder()
default CodecHolder<? extends DensityFunction>
DensityFunctionTypes.Wrapper.getCodecHolder()
CodecHolder<? extends DensityFunction>
DensityFunctionTypes.YClampedGradient.getCodecHolder()
private static RegistryKey<DensityFunction>
private static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.register
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry) Modifier and TypeMethodDescriptionstatic DensityFunction
DensityFunctionTypes.add
(DensityFunction a, DensityFunction b) DensityFunction.DensityFunctionVisitor.apply
(DensityFunction densityFunction) private static DensityFunction
DensityFunctions.applyBlendDensity
(DensityFunction density) private static DensityFunction
DensityFunctions.applyBlending
(DensityFunction function, DensityFunction blendOffset) private static DensityFunction
DensityFunctions.applyEndSlides
(DensityFunction slopedCheese) Applies the slides for The End.private static DensityFunction
DensityFunctions.applyFloatingIslandsSlides
(DensityFunction function, int minY, int maxY) Applies the slides for The End or the floating islands world type.private static DensityFunction
DensityFunctions.applySlides
(DensityFunction density, int minY, int maxY, int topRelativeMinY, int topRelativeMaxY, double topDensity, int bottomRelativeMinY, int bottomRelativeMaxY, double bottomDensity) Interpolates the density at the top and bottom of the world.private static DensityFunction
DensityFunctions.applySurfaceSlides
(boolean amplified, DensityFunction density) Applies the slides for the overworld and the surface world type.static DensityFunction
DensityFunctionTypes.blendDensity
(DensityFunction input) static DensityFunction
DensityFunctionTypes.cache2d
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.cacheAllInCell
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.cacheOnce
(DensityFunction inputFunction) DensityFunctionTypes.BinaryOperationLike.create
(DensityFunctionTypes.BinaryOperationLike.Type type, DensityFunction argument1, DensityFunction argument2) DensityFunctionTypes.UnaryOperation.create
(DensityFunctionTypes.UnaryOperation.Type type, DensityFunction input) private static DensityFunction
DensityFunctions.createCavesFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup, DensityFunction slopedCheese) private static DensityFunction
DensityFunctions.createInitialDensityFunction
(DensityFunction factor, DensityFunction depth) private static NoiseRouter
DensityFunctions.createMultiNoiseDependentNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup, DensityFunction density) private static DensityFunction
DensityFunctions.createRidgesFoldedOverworldFunction
(DensityFunction input) void
DensityFunction.EachApplier.fill
(double[] densities, DensityFunction densityFunction) Fills the density array using a density function.static DensityFunction
DensityFunctionTypes.flatCache
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.interpolated
(DensityFunction inputFunction) static DensityFunction
DensityFunctionTypes.lerp
(DensityFunction delta, double start, DensityFunction end) Creates a new density function which interpolates between the values ofstart
andend
, based ondelta
.static DensityFunction
DensityFunctionTypes.lerp
(DensityFunction delta, DensityFunction start, DensityFunction end) Creates a new density function which interpolates between the values ofstart
andend
, based ondelta
.private static DensityFunction
DensityFunctionTypes.mapRange
(DensityFunction function, double min, double max) Creates a new density function based onfunction
, but with a different range.static DensityFunction
DensityFunctionTypes.max
(DensityFunction a, DensityFunction b) static DensityFunction
DensityFunctionTypes.min
(DensityFunction a, DensityFunction b) static DensityFunction
DensityFunctionTypes.mul
(DensityFunction a, DensityFunction b) static DensityFunction
DensityFunctionTypes.rangeChoice
(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) private static DensityFunction
DensityFunctions.registerAndGetHolder
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key, DensityFunction densityFunction) private static void
DensityFunctions.registerSlopedCheeseFunction
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryEntryLookup<DensityFunction> densityFunctionLookup, DensityFunction jaggedNoise, RegistryEntry<DensityFunction> continents, RegistryEntry<DensityFunction> erosion, RegistryKey<DensityFunction> offsetKey, RegistryKey<DensityFunction> factorKey, RegistryKey<DensityFunction> jaggednessKey, RegistryKey<DensityFunction> depthKey, RegistryKey<DensityFunction> slopedCheeseKey, boolean amplified) Creates and registers thesloped_cheese
density function.static DensityFunction
DensityFunctionTypes.shiftedNoise
(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunction
DensityFunctionTypes.unary
(DensityFunction input, DensityFunctionTypes.UnaryOperation.Type type) private static DensityFunction
DensityFunctions.verticalRangeChoice
(DensityFunction y, DensityFunction whenInRange, int minInclusive, int maxInclusive, int whenOutOfRange) static DensityFunction
DensityFunctionTypes.weirdScaledSampler
(DensityFunction input, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> parameters, DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper mapper) Modifier and TypeMethodDescriptionprivate static DensityFunction
DensityFunctions.applyCavesSlides
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, int minY, int maxY) Applies the slides for the nether and the caves world type.static RegistryEntry<? extends DensityFunction>
DensityFunctions.bootstrap
(Registerable<DensityFunction> densityFunctionRegisterable) private static DensityFunction
DensityFunctions.createCavesEntrancesOverworldFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createCavesFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup, DensityFunction slopedCheese) protected static NoiseRouter
DensityFunctions.createCavesNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) Creates theNoiseRouter
for the caves world type.private static DensityFunction
DensityFunctions.createCavesNoodleOverworldFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) private static DensityFunction
DensityFunctions.createCavesSpaghetti2dOverworldFunction
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) protected static NoiseRouter
DensityFunctions.createEndNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup) Creates theNoiseRouter
for The End.protected static NoiseRouter
DensityFunctions.createFloatingIslandsNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) Creates theNoiseRouter
for the floating islands world type.private static NoiseRouter
DensityFunctions.createMultiNoiseDependentNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup, DensityFunction density) protected static NoiseRouter
DensityFunctions.createNetherNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup) Creates theNoiseRouter
for the nether.protected static NoiseRouter
DensityFunctions.createSurfaceNoiseRouter
(RegistryEntryLookup<DensityFunction> densityFunctionLookup, RegistryEntryLookup<DoublePerlinNoiseSampler.NoiseParameters> noiseParametersLookup, boolean largeBiomes, boolean amplified) Creates theNoiseRouter
for the overworld and the surface world type.private static DensityFunction
DensityFunctions.entryHolder
(RegistryEntryLookup<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key) private static DensityFunction
DensityFunctions.entryHolder
(RegistryEntryLookup<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key) (package private) static <O> CodecHolder<O>
DensityFunctionTypes.holderOf
(BiFunction<DensityFunction, DensityFunction, O> creator, Function<O, DensityFunction> argument1Getter, Function<O, DensityFunction> argument2Getter) (package private) static <O> CodecHolder<O>
DensityFunctionTypes.holderOf
(BiFunction<DensityFunction, DensityFunction, O> creator, Function<O, DensityFunction> argument1Getter, Function<O, DensityFunction> argument2Getter) (package private) static <O> CodecHolder<O>
DensityFunctionTypes.holderOf
(BiFunction<DensityFunction, DensityFunction, O> creator, Function<O, DensityFunction> argument1Getter, Function<O, DensityFunction> argument2Getter) (package private) static <O> CodecHolder<O>
DensityFunctionTypes.holderOf
(Function<DensityFunction, O> creator, Function<O, DensityFunction> argumentGetter) private static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.register
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) private static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.register
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) static com.mojang.serialization.Codec<? extends DensityFunction>
DensityFunctionTypes.registerAndGetDefault
(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry) private static DensityFunction
DensityFunctions.registerAndGetHolder
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key, DensityFunction densityFunction) private static DensityFunction
DensityFunctions.registerAndGetHolder
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryKey<DensityFunction> key, DensityFunction densityFunction) private static void
DensityFunctions.registerSlopedCheeseFunction
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryEntryLookup<DensityFunction> densityFunctionLookup, DensityFunction jaggedNoise, RegistryEntry<DensityFunction> continents, RegistryEntry<DensityFunction> erosion, RegistryKey<DensityFunction> offsetKey, RegistryKey<DensityFunction> factorKey, RegistryKey<DensityFunction> jaggednessKey, RegistryKey<DensityFunction> depthKey, RegistryKey<DensityFunction> slopedCheeseKey, boolean amplified) Creates and registers thesloped_cheese
density function.private static void
DensityFunctions.registerSlopedCheeseFunction
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryEntryLookup<DensityFunction> densityFunctionLookup, DensityFunction jaggedNoise, RegistryEntry<DensityFunction> continents, RegistryEntry<DensityFunction> erosion, RegistryKey<DensityFunction> offsetKey, RegistryKey<DensityFunction> factorKey, RegistryKey<DensityFunction> jaggednessKey, RegistryKey<DensityFunction> depthKey, RegistryKey<DensityFunction> slopedCheeseKey, boolean amplified) Creates and registers thesloped_cheese
density function.private static void
DensityFunctions.registerSlopedCheeseFunction
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryEntryLookup<DensityFunction> densityFunctionLookup, DensityFunction jaggedNoise, RegistryEntry<DensityFunction> continents, RegistryEntry<DensityFunction> erosion, RegistryKey<DensityFunction> offsetKey, RegistryKey<DensityFunction> factorKey, RegistryKey<DensityFunction> jaggednessKey, RegistryKey<DensityFunction> depthKey, RegistryKey<DensityFunction> slopedCheeseKey, boolean amplified) Creates and registers thesloped_cheese
density function.private static void
DensityFunctions.registerSlopedCheeseFunction
(Registerable<DensityFunction> densityFunctionRegisterable, RegistryEntryLookup<DensityFunction> densityFunctionLookup, DensityFunction jaggedNoise, RegistryEntry<DensityFunction> continents, RegistryEntry<DensityFunction> erosion, RegistryKey<DensityFunction> offsetKey, RegistryKey<DensityFunction> factorKey, RegistryKey<DensityFunction> jaggednessKey, RegistryKey<DensityFunction> depthKey, RegistryKey<DensityFunction> slopedCheeseKey, boolean amplified) Creates and registers thesloped_cheese
density function.ModifierConstructorDescription(package private)
BinaryOperation
(DensityFunctionTypes.BinaryOperationLike.Type type, DensityFunction densityFunction, DensityFunction densityFunction2, double double2, double double3) (package private)
BlendDensity
(DensityFunction densityFunction) protected
Clamp
(DensityFunction densityFunction, double double2, double double3) (package private)
LinearOperation
(DensityFunctionTypes.LinearOperation.SpecificType specificType, DensityFunction densityFunction, double double2, double double3, double double4) (package private)
RangeChoice
(DensityFunction densityFunction, double double2, double double3, DensityFunction densityFunction2, DensityFunction densityFunction3) protected
ShiftedNoise
(DensityFunction densityFunction, DensityFunction densityFunction2, DensityFunction densityFunction3, double double2, double double3, DensityFunction.Noise noise) protected
UnaryOperation
(DensityFunctionTypes.UnaryOperation.Type type, DensityFunction densityFunction, double double2, double double3) protected
WeirdScaledSampler
(DensityFunction densityFunction, DensityFunction.Noise noise, DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper rarityValueMapper) protected
Wrapping
(DensityFunctionTypes.Wrapping.Type type, DensityFunction densityFunction) ModifierConstructorDescriptionDensityFunctionWrapper
(RegistryEntry<DensityFunction> registryEntry) RegistryEntryHolder
(RegistryEntry<DensityFunction> registryEntry) -
Uses of DensityFunction in net.minecraft.world.gen.noise
Modifier and TypeFieldDescriptionprivate final DensityFunction
NoiseRouter.barrierNoise
The field for thebarrierNoise
record component.private final DensityFunction
NoiseRouter.continents
The field for thecontinents
record component.private final DensityFunction
NoiseRouter.depth
The field for thedepth
record component.private final DensityFunction
NoiseRouter.erosion
The field for theerosion
record component.private final DensityFunction
NoiseRouter.finalDensity
The field for thefinalDensity
record component.private final DensityFunction
NoiseRouter.fluidLevelFloodednessNoise
The field for thefluidLevelFloodednessNoise
record component.private final DensityFunction
NoiseRouter.fluidLevelSpreadNoise
The field for thefluidLevelSpreadNoise
record component.private final DensityFunction
NoiseRouter.initialDensityWithoutJaggedness
The field for theinitialDensityWithoutJaggedness
record component.private final DensityFunction
NoiseRouter.lavaNoise
The field for thelavaNoise
record component.private final DensityFunction
NoiseRouter.ridges
The field for theridges
record component.private final DensityFunction
NoiseRouter.temperature
The field for thetemperature
record component.private final DensityFunction
NoiseRouter.vegetation
The field for thevegetation
record component.private final DensityFunction
NoiseRouter.veinGap
The field for theveinGap
record component.private final DensityFunction
NoiseRouter.veinRidged
The field for theveinRidged
record component.private final DensityFunction
NoiseRouter.veinToggle
The field for theveinToggle
record component.Modifier and TypeMethodDescriptionNoiseRouter.barrierNoise()
Returns the value of thebarrierNoise
record component.NoiseRouter.continents()
Returns the value of thecontinents
record component.NoiseRouter.depth()
Returns the value of thedepth
record component.NoiseRouter.erosion()
Returns the value of theerosion
record component.NoiseRouter.finalDensity()
Returns the value of thefinalDensity
record component.NoiseRouter.fluidLevelFloodednessNoise()
Returns the value of thefluidLevelFloodednessNoise
record component.NoiseRouter.fluidLevelSpreadNoise()
Returns the value of thefluidLevelSpreadNoise
record component.NoiseRouter.initialDensityWithoutJaggedness()
Returns the value of theinitialDensityWithoutJaggedness
record component.NoiseRouter.lavaNoise()
Returns the value of thelavaNoise
record component.NoiseRouter.ridges()
Returns the value of theridges
record component.NoiseRouter.temperature()
Returns the value of thetemperature
record component.NoiseRouter.vegetation()
Returns the value of thevegetation
record component.NoiseRouter.veinGap()
Returns the value of theveinGap
record component.NoiseRouter.veinRidged()
Returns the value of theveinRidged
record component.NoiseRouter.veinToggle()
Returns the value of theveinToggle
record component.Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.codecs.RecordCodecBuilder<NoiseRouter,
DensityFunction> NoiseRouter.field
(String name, Function<NoiseRouter, DensityFunction> getter) Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.codecs.RecordCodecBuilder<NoiseRouter,
DensityFunction> NoiseRouter.field
(String name, Function<NoiseRouter, DensityFunction> getter) ModifierConstructorDescriptionNoiseRouter
(DensityFunction densityFunction, DensityFunction densityFunction2, DensityFunction densityFunction3, DensityFunction densityFunction4, DensityFunction densityFunction5, DensityFunction densityFunction6, DensityFunction densityFunction7, DensityFunction densityFunction8, DensityFunction densityFunction9, DensityFunction densityFunction10, DensityFunction densityFunction11, DensityFunction densityFunction12, DensityFunction densityFunction13, DensityFunction densityFunction14, DensityFunction densityFunction15)