Interface PlacementModifier

All Superinterfaces:
Wrapper
All Known Subinterfaces:
BiomeFilter, BlockPredicateFilter, CountOnEveryLayerPlacement, CountPlacement, EnvironmentScanPlacement, FixedPlacement, HeightmapPlacement, HeightRangePlacement, InSquarePlacement, NoiseBasedCountPlacement, NoiseThresholdCountPlacement, PlacementFilter, RandomOffsetPlacement, RarityFilter, SurfaceRelativeThresholdFilter, SurfaceWaterDepthFilter

@NullMarked @AsOf("2.3.0") public interface PlacementModifier extends Wrapper
A placed feature determines where a configured feature should be attempted to be placed using placement modifiers.
Since:
2.3.0
See Also:
  • Method Details

    • biomeFilter

      @AsOf("2.3.0") static BiomeFilter biomeFilter()
      Reference to the biome filter placement modifier.
      Returns:
      the biome filter placement modifier
      Since:
      2.3.0
    • blockPredicateFilter

      @AsOf("2.3.0") static BlockPredicateFilter blockPredicateFilter(BlockPredicate predicate)
      Creates a block predicate filter.
      Parameters:
      predicate - the block predicate to filter by
      Returns:
      a block predicate filter
      Since:
      2.3.0
    • countOnEveryLayer

      @Deprecated @AsOf("3.0.0") static CountOnEveryLayerPlacement countOnEveryLayer(IntProvider count)
      Deprecated.
      Deprecated in Minecraft.
      Creates a count on every layer placement modifier.
      Parameters:
      count - the count provider
      Returns:
      a count on every layer placement modifier
      Since:
      3.0.0
    • count

      @AsOf("2.3.0") static CountPlacement count(IntProvider count)
      Creates a count placement modifier.
      Parameters:
      count - the count provider
      Returns:
      a count placement modifier
      Since:
      2.3.0
    • environmentScan

      @AsOf("3.0.0") static EnvironmentScanPlacement.Builder environmentScan()
      A new builder for the environment scan placement modifier.
      Returns:
      a new environment scan placement modifier builder
      Since:
      3.0.0
    • fixed

      @AsOf("3.0.0") static FixedPlacement.Builder fixed()
      A new builder for the fixed placement modifier.
      Returns:
      a new fixed placement modifier builder
      Since:
      3.0.0
    • heightmap

      @AsOf("2.3.0") static HeightmapPlacement heightmap(HeightmapType heightmap)
      A new instance of the heightmap placement modifier.
      Parameters:
      heightmap - the heightmap type to use
      Returns:
      a new heightmap placement modifier
      Since:
      2.3.0
    • heightRange

      @AsOf("2.3.0") static HeightRangePlacement heightRange(HeightProvider height)
      A new instance of the height range placement modifier.
      Parameters:
      height - the height provider
      Returns:
      a new height range placement modifier
      Since:
      2.3.0
    • inSquare

      @AsOf("2.3.0") static InSquarePlacement inSquare()
      Reference to the in-square placement modifier.
      Returns:
      the in-square placement modifier
      Since:
      2.3.0
    • noiseBasedCount

      @AsOf("3.0.0") static NoiseBasedCountPlacement.Builder noiseBasedCount()
      A new builder for the noise-based count placement modifier.
      Returns:
      a new noise-based count placement modifier builder
      Since:
      3.0.0
    • noiseThresholdCount

      @AsOf("3.0.0") static NoiseThresholdCountPlacement.Builder noiseThresholdCount()
      A new builder for the noise-based placement modifier.
      Returns:
      a new noise-based placement modifier builder
      Since:
      3.0.0
    • randomOffset

      @AsOf("3.0.0") static RandomOffsetPlacement.Builder randomOffset()
      A new builder for the random offset placement modifier.
      Returns:
      a new random offset placement modifier builder
      Since:
      3.0.0
    • rarityFilter

      @AsOf("2.3.0") static RarityFilter rarityFilter(int chance)
      A new instance of the rarity filter placement modifier.
      Parameters:
      chance - the average chance denominator, a positive integer
      Returns:
      a new rarity filter placement modifier
      Since:
      2.3.0
    • surfaceRelativeThreshold

      @AsOf("3.0.0") static SurfaceRelativeThresholdFilter.Builder surfaceRelativeThreshold()
      A new builder for the surface relative threshold filter.
      Returns:
      a new surface relative threshold filter builder
      Since:
      3.0.0
    • surfaceWaterDepthFilter

      @AsOf("2.3.0") static SurfaceWaterDepthFilter surfaceWaterDepthFilter(int maxWaterDepth)
      A new instance of the surface water depth filter.
      Parameters:
      maxWaterDepth - the maximum allowed water depth
      Returns:
      a new surface water depth filter
      Since:
      2.3.0
    • decode

      @AsOf("3.3.0") static PlacementModifier decode(Object minecraftModifier)
      Reads a Minecraft placement modifier into a wrapper.
      Parameters:
      minecraftModifier - the Minecraft modifier to read
      Returns:
      the wrapper for the modifier
      Since:
      3.3.0