Class PlacementFilter
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.PlacementFilter
- Direct Known Subclasses:
BiomeFilter
,BlockPredicateFilter
,RarityFilter
,SurfaceRelativeThresholdFilter
,SurfaceWaterDepthFilter
-
Field Summary
Fields inherited from class net.minecraft.world.level.levelgen.placement.PlacementModifier
CODEC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPositions
(PlacementContext p_226386_, RandomSource p_226387_, BlockPos p_226388_) protected abstract boolean
shouldPlace
(PlacementContext p_226382_, RandomSource p_226383_, BlockPos p_226384_) Methods inherited from class net.minecraft.world.level.levelgen.placement.PlacementModifier
type
-
Constructor Details
-
PlacementFilter
public PlacementFilter()
-
-
Method Details
-
getPositions
public final Stream<BlockPos> getPositions(PlacementContext p_226386_, RandomSource p_226387_, BlockPos p_226388_) - Specified by:
getPositions
in classPlacementModifier
-
shouldPlace
protected abstract boolean shouldPlace(PlacementContext p_226382_, RandomSource p_226383_, BlockPos p_226384_)
-