Class ExpressionMask2D
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask2D
com.sk89q.worldedit.function.mask.ExpressionMask2D
- All Implemented Interfaces:
Mask2D
-
Constructor Summary
ConstructorDescriptionExpressionMask2D
(Expression expression) Create a new instance.ExpressionMask2D
(Expression expression, IntSupplier timeout) ExpressionMask2D
(String expression) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncopy2D()
boolean
test
(BlockVector2 vector) Returns true if the criteria is met.
-
Constructor Details
-
ExpressionMask2D
Create a new instance.- Parameters:
expression
- the expression- Throws:
ExpressionException
- thrown if there is an error with the expression
-
ExpressionMask2D
Create a new instance.- Parameters:
expression
- the expression
-
ExpressionMask2D
-
-
Method Details
-
test
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
-