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 intprivate final intstatic final com.mojang.serialization.MapCodec<NoiseThresholdCountPlacement> private final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNoiseThresholdCountPlacement(double pNoiseLevel, int pBelowNoise, int pAboveNoise) -
Method Summary
Modifier and TypeMethodDescriptionprotected intcount(RandomSource p_226355_, BlockPos p_226356_) static NoiseThresholdCountPlacementof(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:
countin classRepeatingPlacement
-
type
- Specified by:
typein classPlacementModifier
-