Interface PlacementFilter

All Superinterfaces:
PlacementModifier, Wrapper
All Known Subinterfaces:
BiomeFilter, BlockPredicateFilter, RarityFilter, SurfaceRelativeThresholdFilter, SurfaceWaterDepthFilter

@NullMarked @AsOf("3.0.0") public interface PlacementFilter extends PlacementModifier
An abstract placement filter.
Since:
3.0.0
  • Method Details

    • biome

      @AsOf("3.0.0") static BiomeFilter biome()
      An instance of the biome filter.
      Returns:
      the biome filter
      Since:
      3.0.0
    • blockPredicate

      @AsOf("3.0.0") static BlockPredicateFilter blockPredicate(BlockPredicate predicate)
      A new instance of a block predicate filter.
      Parameters:
      predicate - the block predicate
      Returns:
      a new block predicate filter
      Since:
      3.0.0
    • rarity

      @AsOf("3.0.0") static RarityFilter rarity(int chance)
      Creates a new rarity filter.
      Parameters:
      chance - the average chance denominator, a positive integer
      Returns:
      a new rarity filter
      Since:
      3.0.0
    • surfaceRelativeThreshold

      @AsOf("3.0.0") static SurfaceRelativeThresholdFilter.Builder surfaceRelativeThreshold()
      Creates a new surface relative threshold filter.
      Returns:
      a new surface relative threshold filter builder
      Since:
      3.0.0
    • surfaceWaterDepth

      @AsOf("3.0.0") static SurfaceWaterDepthFilter surfaceWaterDepth(int maxWaterDepth)
      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