Class BlockPattern

java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.sk89q.worldedit.function.pattern.BlockPattern
All Implemented Interfaces:
Pattern

@Deprecated public class BlockPattern extends AbstractPattern
Deprecated.
all BlockStateHolders can be used directly as a pattern
A pattern that returns the same BaseBlock each time.
  • Constructor Details

    • BlockPattern

      public BlockPattern(BlockStateHolder<?> block)
      Deprecated.
      Create a new pattern with the given block.
      Parameters:
      block - the block
  • Method Details

    • getBlock

      public BaseBlock getBlock()
      Deprecated.
      Get the block.
      Returns:
      the block that is always returned
    • setBlock

      public void setBlock(BlockStateHolder<?> block)
      Deprecated.
      Set the block that is returned.
      Parameters:
      block - the block
    • applyBlock

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