Class RepeatingExtentPattern

All Implemented Interfaces:
Filter, ExtentPattern, Pattern
Direct Known Subclasses:
ClipboardPattern

public class RepeatingExtentPattern extends AbstractExtentPattern
Returns the blocks from Extent, repeating when out of bounds.
  • Constructor Details

    • RepeatingExtentPattern

      public RepeatingExtentPattern(Extent extent, BlockVector3 origin, BlockVector3 offset)
      Create a new instance.
      Parameters:
      extent - the extent
      offset - the offset
  • Method Details

    • getOffset

      public BlockVector3 getOffset()
      Get the offset.
      Returns:
      the offset
    • setOffset

      public void setOffset(BlockVector3 offset)
      Set the offset.
      Parameters:
      offset - the offset
    • getOrigin

      public BlockVector3 getOrigin()
      Get the origin.
      Returns:
      the origin
    • setOrigin

      public void setOrigin(BlockVector3 origin)
      Set the origin.
      Parameters:
      origin - the origin
    • applyBlock

      public BaseBlock applyBlock(BlockVector3 position)
      Description copied from interface: Pattern
      Return a BaseBlock for the given position.
      Parameters:
      position - the position
      Returns:
      a block