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.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.ObjectList<JigsawJunction>
protected final it.unimi.dsi.fastutil.objects.ObjectListIterator<StructurePiece>
protected final it.unimi.dsi.fastutil.objects.ObjectList<StructurePiece>
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
ModifierConstructorDescriptionprotected
Beardifier
(StructureFeatureManager p_158070_, ChunkAccess p_158071_) -
Method Summary
Modifier and TypeMethodDescriptiondouble
compute
(DensityFunction.FunctionContext p_208200_) private static double
computeBeardContribution
(int p_158092_, int p_158093_, int p_158094_) protected static double
getBeardContribution
(int p_158088_, int p_158089_, int p_158090_) protected static double
getBuryContribution
(int p_158084_, int p_158085_, int p_158086_) 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 -
rigids
-
junctions
-
pieceIterator
-
junctionIterator
-
-
Constructor Details
-
Beardifier
-
-
Method Details
-
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
protected static double getBuryContribution(int p_158084_, int p_158085_, int p_158086_) -
getBeardContribution
protected static double getBeardContribution(int p_158088_, int p_158089_, int p_158090_) -
computeBeardContribution
private static double computeBeardContribution(int p_158092_, int p_158093_, int p_158094_)
-