Class DensityFunctions.EndIslandDensityFunction
java.lang.Object
net.minecraft.world.level.levelgen.DensityFunctions.EndIslandDensityFunction
- All Implemented Interfaces:
DensityFunction
,DensityFunction.SimpleFunction
- Enclosing class:
DensityFunctions
protected static final class DensityFunctions.EndIslandDensityFunction
extends Object
implements DensityFunction.SimpleFunction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.NoiseHolder, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
Field Summary
FieldsFields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DIRECT_CODEC, HOLDER_HELPER_CODEC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionKeyDispatchDataCodec
<? extends DensityFunction> codec()
double
compute
(DensityFunction.FunctionContext pContext) private static float
getHeightValue
(SimplexNoise pNoise, int pX, int pZ) double
maxValue()
double
minValue()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction.SimpleFunction
fillArray, mapAll
-
Field Details
-
CODEC
-
ISLAND_THRESHOLD
private static final float ISLAND_THRESHOLD- See Also:
-
islandNoise
-
-
Constructor Details
-
EndIslandDensityFunction
public EndIslandDensityFunction(long pSeed)
-
-
Method Details
-
getHeightValue
-
compute
- Specified by:
compute
in interfaceDensityFunction
-
minValue
public double minValue()- Specified by:
minValue
in interfaceDensityFunction
-
maxValue
public double maxValue()- Specified by:
maxValue
in interfaceDensityFunction
-
codec
- Specified by:
codec
in interfaceDensityFunction
-