Class SurfaceWaterDepthFilter
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.PlacementFilter
net.minecraft.world.level.levelgen.placement.SurfaceWaterDepthFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SurfaceWaterDepthFilter>
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SurfaceWaterDepthFilter
forMaxDepth
(int p_191951_) protected boolean
shouldPlace
(PlacementContext p_226411_, RandomSource p_226412_, BlockPos p_226413_) type()
Methods inherited from class net.minecraft.world.level.levelgen.placement.PlacementFilter
getPositions
-
Field Details
-
CODEC
-
maxWaterDepth
private final int maxWaterDepth
-
-
Constructor Details
-
SurfaceWaterDepthFilter
private SurfaceWaterDepthFilter(int p_191949_)
-
-
Method Details
-
forMaxDepth
-
shouldPlace
protected boolean shouldPlace(PlacementContext p_226411_, RandomSource p_226412_, BlockPos p_226413_) - Specified by:
shouldPlace
in classPlacementFilter
-
type
- Specified by:
type
in classPlacementModifier
-