Class ExpressionMask2D

java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask2D
com.sk89q.worldedit.function.mask.ExpressionMask2D
All Implemented Interfaces:
Mask2D

public class ExpressionMask2D extends AbstractMask2D
  • Constructor Details

    • ExpressionMask2D

      public ExpressionMask2D(String expression) throws ExpressionException
      Create a new instance.
      Parameters:
      expression - the expression
      Throws:
      ExpressionException - thrown if there is an error with the expression
    • ExpressionMask2D

      public ExpressionMask2D(Expression expression)
      Create a new instance.
      Parameters:
      expression - the expression
    • ExpressionMask2D

      public ExpressionMask2D(Expression expression, @Nullable IntSupplier timeout)
  • Method Details

    • test

      public boolean test(BlockVector2 vector)
      Description copied from interface: Mask2D
      Returns true if the criteria is met.
      Parameters:
      vector - the vector to test
      Returns:
      true if the criteria is met
    • copy2D

      public Mask2D copy2D()