Interface PlacementFilter
- All Superinterfaces:
PlacementModifier, Wrapper
- All Known Subinterfaces:
BiomeFilter, BlockPredicateFilter, RarityFilter, SurfaceRelativeThresholdFilter, SurfaceWaterDepthFilter
An abstract placement filter.
- Since:
- 3.0.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic BiomeFilterbiome()An instance of the biome filter.static BlockPredicateFilterblockPredicate(BlockPredicate predicate) A new instance of a block predicate filter.static RarityFilterrarity(int chance) Creates a new rarity filter.Creates a new surface relative threshold filter.static SurfaceWaterDepthFiltersurfaceWaterDepth(int maxWaterDepth) Creates a new surface water depth filter.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
biome
An instance of the biome filter.- Returns:
- the biome filter
- Since:
- 3.0.0
-
blockPredicate
A new instance of a block predicate filter.- Parameters:
predicate- the block predicate- Returns:
- a new block predicate filter
- Since:
- 3.0.0
-
rarity
Creates a new rarity filter.- Parameters:
chance- the average chance denominator, a positive integer- Returns:
- a new rarity filter
- Since:
- 3.0.0
-
surfaceRelativeThreshold
Creates a new surface relative threshold filter.- Returns:
- a new surface relative threshold filter builder
- Since:
- 3.0.0
-
surfaceWaterDepth
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
-