Interface DensityFunction
- All Known Subinterfaces:
DensityFunction.SimpleFunction
,DensityFunctions.BeardifierOrMarker
,DensityFunctions.MarkerOrMarked
,DensityFunctions.PureTransformer
,DensityFunctions.ShiftNoise
,DensityFunctions.TransformerWithContext
,DensityFunctions.TwoArgumentSimpleFunction
,NoiseChunk.NoiseChunkDensityFunction
- All Known Implementing Classes:
Beardifier
,BlendedNoise
,DensityFunctions.Ap2
,DensityFunctions.BeardifierMarker
,DensityFunctions.BlendAlpha
,DensityFunctions.BlendDensity
,DensityFunctions.BlendOffset
,DensityFunctions.Clamp
,DensityFunctions.Constant
,DensityFunctions.EndIslandDensityFunction
,DensityFunctions.HolderHolder
,DensityFunctions.Mapped
,DensityFunctions.Marker
,DensityFunctions.MulOrAdd
,DensityFunctions.Noise
,DensityFunctions.RangeChoice
,DensityFunctions.Shift
,DensityFunctions.ShiftA
,DensityFunctions.ShiftB
,DensityFunctions.ShiftedNoise
,DensityFunctions.Spline
,DensityFunctions.WeirdScaledSampler
,DensityFunctions.YClampedGradient
,NoiseChunk.BlendAlpha
,NoiseChunk.BlendOffset
,NoiseChunk.Cache2D
,NoiseChunk.CacheAllInCell
,NoiseChunk.CacheOnce
,NoiseChunk.FlatCache
,NoiseChunk.NoiseInterpolator
public interface DensityFunction
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
static final record
static interface
static final record
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Holder<DensityFunction>>
static final com.mojang.serialization.Codec<DensityFunction>
static final com.mojang.serialization.Codec<DensityFunction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DensityFunction
abs()
default DensityFunction
clamp
(double p_208221_, double p_208222_) KeyDispatchDataCodec<? extends DensityFunction>
codec()
double
compute
(DensityFunction.FunctionContext p_208223_) default DensityFunction
cube()
void
fillArray
(double[] p_208227_, DensityFunction.ContextProvider p_208228_) default DensityFunction
mapAll
(DensityFunction.Visitor p_208224_) double
maxValue()
double
minValue()
default DensityFunction
default DensityFunction
square()
default DensityFunction
squeeze()
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
HOLDER_HELPER_CODEC
-
-
Method Details
-
compute
-
fillArray
-
mapAll
-
minValue
double minValue() -
maxValue
double maxValue() -
codec
KeyDispatchDataCodec<? extends DensityFunction> codec() -
clamp
-
abs
-
square
-
cube
-
halfNegative
-
quarterNegative
-
squeeze
-