Interface RegionFunction

All Superinterfaces:
Filter
All Known Implementing Classes:
BiomeCopy, BiomeReplace, BlockDistributionCounter, BlockReplace, CombinedBlockCopy, CombinedRegionFunction, Counter, ExtentBiomeCopy, ExtentBlockCopy, FloraGenerator, ForestGenerator, GardenPatchGenerator, IntersectRegionFunction, ItemUseFunction, NullRegionFunction, RegionMaskingFilter, RegionMaskTestFunction, RegionOffset, SimpleBlockCopy

public interface RegionFunction extends Filter
Performs a function on points in a region.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(BlockVector3 position)
    Apply the function to the given position.
    default void
    Make changes to the block here
    - e.g., block.setId(...)
    - Note: Performance is critical here

    Methods inherited from interface com.fastasyncworldedit.core.queue.Filter

    applyChunk, finishChunk, fork, join
  • Method Details

    • apply

      boolean apply(BlockVector3 position) throws WorldEditException
      Apply the function to the given position.
      Parameters:
      position - the position
      Returns:
      true if something was changed
      Throws:
      WorldEditException - thrown on an error
    • applyBlock

      default void applyBlock(FilterBlock block)
      Description copied from interface: Filter
      Make changes to the block here
      - e.g., block.setId(...)
      - Note: Performance is critical here
      Specified by:
      applyBlock in interface Filter