Class OreVeinifier
java.lang.Object
net.minecraft.world.level.levelgen.OreVeinifier
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private static float
private static int
private NormalNoise
private static double
private static float
private static float
private static float
private BlockState
private static float
private static float
private static float
private static float
private static float
private NormalNoise
private NormalNoise
private static double
private static float
private NormalNoise
private int
private int
-
Constructor Summary
ConstructorDescriptionOreVeinifier(long p_158806_, BlockState p_158807_, int p_158808_, int p_158809_, int p_158810_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillNoiseColumn(double[] p_158834_, int p_158835_, int p_158836_, NormalNoise p_158837_, double p_158838_, int p_158839_, int p_158840_)
void
fillNoiseColumnA(double[] p_158844_, int p_158845_, int p_158846_, int p_158847_, int p_158848_)
void
fillNoiseColumnB(double[] p_158850_, int p_158851_, int p_158852_, int p_158853_, int p_158854_)
void
fillVeininessNoiseColumn(double[] p_158828_, int p_158829_, int p_158830_, int p_158831_, int p_158832_)
private OreVeinifier.VeinType
getVeinType(double p_158815_, int p_158816_)
private boolean
isVein(double p_158812_, double p_158813_)
oreVeinify(RandomSource p_158820_, int p_158821_, int p_158822_, int p_158823_, double p_158824_, double p_158825_, double p_158826_)
-
Field Details
-
RARITY
private static final float RARITY- See Also:
- Constant Field Values
-
RIDGE_NOISE_FREQUENCY
private static final float RIDGE_NOISE_FREQUENCY- See Also:
- Constant Field Values
-
THICKNESS
private static final float THICKNESS- See Also:
- Constant Field Values
-
VEININESS_THRESHOLD
private static final float VEININESS_THRESHOLD- See Also:
- Constant Field Values
-
VEININESS_FREQUENCY
private static final double VEININESS_FREQUENCY- See Also:
- Constant Field Values
-
EDGE_ROUNDOFF_BEGIN
private static final int EDGE_ROUNDOFF_BEGIN- See Also:
- Constant Field Values
-
MAX_EDGE_ROUNDOFF
private static final double MAX_EDGE_ROUNDOFF- See Also:
- Constant Field Values
-
VEIN_SOLIDNESS
private static final float VEIN_SOLIDNESS- See Also:
- Constant Field Values
-
MIN_RICHNESS
private static final float MIN_RICHNESS- See Also:
- Constant Field Values
-
MAX_RICHNESS
private static final float MAX_RICHNESS- See Also:
- Constant Field Values
-
MAX_RICHNESS_THRESHOLD
private static final float MAX_RICHNESS_THRESHOLD- See Also:
- Constant Field Values
-
CHANCE_OF_RAW_ORE_BLOCK
private static final float CHANCE_OF_RAW_ORE_BLOCK- See Also:
- Constant Field Values
-
SKIP_ORE_IF_GAP_NOISE_IS_BELOW
private static final float SKIP_ORE_IF_GAP_NOISE_IS_BELOW- See Also:
- Constant Field Values
-
veinMaxY
private final int veinMaxY -
veinMinY
private final int veinMinY -
normalBlock
-
veininessNoiseSource
-
veinANoiseSource
-
veinBNoiseSource
-
gapNoise
-
cellWidth
private final int cellWidth -
cellHeight
private final int cellHeight
-
-
Constructor Details
-
OreVeinifier
public OreVeinifier(long p_158806_, BlockState p_158807_, int p_158808_, int p_158809_, int p_158810_)
-
-
Method Details
-
fillVeininessNoiseColumn
public void fillVeininessNoiseColumn(double[] p_158828_, int p_158829_, int p_158830_, int p_158831_, int p_158832_) -
fillNoiseColumnA
public void fillNoiseColumnA(double[] p_158844_, int p_158845_, int p_158846_, int p_158847_, int p_158848_) -
fillNoiseColumnB
public void fillNoiseColumnB(double[] p_158850_, int p_158851_, int p_158852_, int p_158853_, int p_158854_) -
fillNoiseColumn
public void fillNoiseColumn(double[] p_158834_, int p_158835_, int p_158836_, NormalNoise p_158837_, double p_158838_, int p_158839_, int p_158840_) -
oreVeinify
public BlockState oreVeinify(RandomSource p_158820_, int p_158821_, int p_158822_, int p_158823_, double p_158824_, double p_158825_, double p_158826_) -
isVein
private boolean isVein(double p_158812_, double p_158813_) -
getVeinType
-