Interface SurfaceRelativeThresholdFilter
- All Superinterfaces:
PlacementFilter, PlacementModifier, Wrapper
Returns the current position if it lies within a range relative to the surface at that column.
Otherwise returns empty.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classBuilder forSurfaceRelativeThresholdFilter. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.The heightmap to measure the surface against.intThe maximum relative height from the surface to the current position.intThe minimum relative height from the surface to the current position.of(HeightmapType heightmap, int minInclusive, int maxInclusive) Creates a new surface relative threshold filter.Converts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
heightmap
The heightmap to measure the surface against.- Returns:
- the heightmap type
- Since:
- 3.0.0
-
minInclusive
The minimum relative height from the surface to the current position.- Returns:
- the minimum inclusive relative height
- Since:
- 3.0.0
-
maxInclusive
The maximum relative height from the surface to the current position.- Returns:
- the maximum inclusive relative height
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static SurfaceRelativeThresholdFilter of(HeightmapType heightmap, int minInclusive, int maxInclusive) Creates a new surface relative threshold filter.- Parameters:
heightmap- the heightmap to measure the surface againstminInclusive- the minimum relative height from the surface to the current positionmaxInclusive- the maximum relative height from the surface to the current position- Returns:
- a new surface relative threshold filter
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-