Class NoiseThresholdCountPlacement
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.RepeatingPlacement
net.minecraft.world.level.levelgen.placement.NoiseThresholdCountPlacement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
static final com.mojang.serialization.MapCodec
<NoiseThresholdCountPlacement> private final double
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NoiseThresholdCountPlacement
(double pNoiseLevel, int pBelowNoise, int pAboveNoise) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
count
(RandomSource p_226355_, BlockPos p_226356_) static NoiseThresholdCountPlacement
of
(double pNoiseLevel, int pBelowNoise, int pAboveNoise) type()
Methods inherited from class net.minecraft.world.level.levelgen.placement.RepeatingPlacement
getPositions
-
Field Details
-
CODEC
-
noiseLevel
private final double noiseLevel -
belowNoise
private final int belowNoise -
aboveNoise
private final int aboveNoise
-
-
Constructor Details
-
NoiseThresholdCountPlacement
private NoiseThresholdCountPlacement(double pNoiseLevel, int pBelowNoise, int pAboveNoise)
-
-
Method Details
-
of
-
count
- Specified by:
count
in classRepeatingPlacement
-
type
- Specified by:
type
in classPlacementModifier
-