Class RarityFilter
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.PlacementFilter
net.minecraft.world.level.levelgen.placement.RarityFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
static final com.mojang.serialization.Codec<RarityFilter>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RarityFilter
onAverageOnceEvery
(int p_191901_) protected boolean
shouldPlace
(PlacementContext p_226397_, RandomSource p_226398_, BlockPos p_226399_) type()
Methods inherited from class net.minecraft.world.level.levelgen.placement.PlacementFilter
getPositions
-
Field Details
-
CODEC
-
chance
private final int chance
-
-
Constructor Details
-
RarityFilter
private RarityFilter(int p_191899_)
-
-
Method Details
-
onAverageOnceEvery
-
shouldPlace
protected boolean shouldPlace(PlacementContext p_226397_, RandomSource p_226398_, BlockPos p_226399_) - Specified by:
shouldPlace
in classPlacementFilter
-
type
- Specified by:
type
in classPlacementModifier
-