Class Beardifier
java.lang.Object
net.minecraft.world.level.levelgen.Beardifier
- All Implemented Interfaces:
DensityFunction
,DensityFunction.SimpleFunction
,DensityFunctions.BeardifierOrMarker
-
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
Modifier and TypeFieldDescriptionprivate static final float[]
static final int
private static final int
protected final it.unimi.dsi.fastutil.objects.ObjectListIterator
<JigsawJunction> protected final it.unimi.dsi.fastutil.objects.ObjectListIterator
<Beardifier.Rigid> Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DIRECT_CODEC, HOLDER_HELPER_CODEC
Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.BeardifierOrMarker
CODEC
-
Constructor Summary
ConstructorDescriptionBeardifier
(it.unimi.dsi.fastutil.objects.ObjectListIterator<Beardifier.Rigid> p_223917_, it.unimi.dsi.fastutil.objects.ObjectListIterator<JigsawJunction> p_223918_) -
Method Summary
Modifier and TypeMethodDescriptiondouble
compute
(DensityFunction.FunctionContext p_208200_) private static double
computeBeardContribution
(int p_223922_, double p_223923_, int p_223924_) private static double
computeBeardContribution
(int p_158092_, int p_158093_, int p_158094_) static Beardifier
forStructuresInChunk
(StructureManager p_223938_, ChunkPos p_223939_) protected static double
getBeardContribution
(int p_223926_, int p_223927_, int p_223928_, int p_223929_) private static double
getBuryContribution
(double p_328731_, double p_336073_, double p_329819_) private static boolean
isInKernelRange
(int p_223920_) 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
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunctions.BeardifierOrMarker
codec
-
Field Details
-
BEARD_KERNEL_RADIUS
public static final int BEARD_KERNEL_RADIUS- See Also:
-
BEARD_KERNEL_SIZE
private static final int BEARD_KERNEL_SIZE- See Also:
-
BEARD_KERNEL
private static final float[] BEARD_KERNEL -
pieceIterator
-
junctionIterator
-
-
Constructor Details
-
Beardifier
public Beardifier(it.unimi.dsi.fastutil.objects.ObjectListIterator<Beardifier.Rigid> p_223917_, it.unimi.dsi.fastutil.objects.ObjectListIterator<JigsawJunction> p_223918_)
-
-
Method Details
-
forStructuresInChunk
-
compute
- Specified by:
compute
in interfaceDensityFunction
-
minValue
public double minValue()- Specified by:
minValue
in interfaceDensityFunction
-
maxValue
public double maxValue()- Specified by:
maxValue
in interfaceDensityFunction
-
getBuryContribution
private static double getBuryContribution(double p_328731_, double p_336073_, double p_329819_) -
getBeardContribution
protected static double getBeardContribution(int p_223926_, int p_223927_, int p_223928_, int p_223929_) -
isInKernelRange
private static boolean isInKernelRange(int p_223920_) -
computeBeardContribution
private static double computeBeardContribution(int p_158092_, int p_158093_, int p_158094_) -
computeBeardContribution
private static double computeBeardContribution(int p_223922_, double p_223923_, int p_223924_)
-