Interface SurfaceWaterDepthFilter
- All Superinterfaces:
PlacementFilter, PlacementModifier, Wrapper
Returns the current position if the number of motion blocking blocks under the surface is less
than or equal to the maximum water depth. Otherwise returns empty.
- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintThe maximum allowed water depth.static SurfaceWaterDepthFilterof(int maxWaterDepth) Creates a new surface water depth filter.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
maxWaterDepth
The maximum allowed water depth.- Returns:
- the maximum water depth
- Since:
- 3.0.0
-
of
Creates a new surface water depth filter.- Parameters:
maxWaterDepth- the maximum allowed water depth- Returns:
- a new surface water depth filter
- Since:
- 3.0.0
-