Class NoiseBasedCountPlacement
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.RepeatingPlacement
net.minecraft.world.level.levelgen.placement.NoiseBasedCountPlacement
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NoiseBasedCountPlacement>
private final double
private final double
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
NoiseBasedCountPlacement
(int p_191728_, double p_191729_, double p_191730_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
count
(RandomSource p_226352_, BlockPos p_226353_) static NoiseBasedCountPlacement
of
(int p_191732_, double p_191733_, double p_191734_) type()
Methods inherited from class net.minecraft.world.level.levelgen.placement.RepeatingPlacement
getPositions
-
Field Details
-
CODEC
-
noiseToCountRatio
private final int noiseToCountRatio -
noiseFactor
private final double noiseFactor -
noiseOffset
private final double noiseOffset
-
-
Constructor Details
-
NoiseBasedCountPlacement
private NoiseBasedCountPlacement(int p_191728_, double p_191729_, double p_191730_)
-
-
Method Details
-
of
-
count
- Specified by:
count
in classRepeatingPlacement
-
type
- Specified by:
type
in classPlacementModifier
-