Class Masks
java.lang.Object
com.sk89q.worldedit.function.mask.Masks
-
Method Summary
Modifier and TypeMethodDescriptionstatic Mask
Return a 3D mask that always returns true.static Mask2D
Return a 2D mask that always returns true.static Mask
Return a 3-dimensional version of a 2D mask.static Mask
Memoize the given mask.static Mask2D
Memoize the given mask.static Mask
Negate the given mask.static Mask2D
Negate the given mask.
-
Method Details
-
alwaysTrue
Return a 3D mask that always returns true.- Returns:
- a mask
-
alwaysTrue2D
Return a 2D mask that always returns true.- Returns:
- a mask
-
memoize
Memoize the given mask.This should not be kept around long-term for memory usage reasons. It's intended for usage within a single operation. The function is auto-closeable to make this simpler.
- Parameters:
mask
- the mask- Returns:
- a memoized mask
-
memoize
Memoize the given mask.This should not be kept around long-term for memory usage reasons. It's intended for usage within a single operation. The function is auto-closeable to make this simpler.
- Parameters:
mask
- the mask- Returns:
- a memoized mask
-
negate
Negate the given mask.- Parameters:
mask
- the mask- Returns:
- a new mask
-
negate
Negate the given mask.- Parameters:
mask
- the mask- Returns:
- a new mask
-
asMask
Return a 3-dimensional version of a 2D mask.- Parameters:
mask
- the mask to make 3D- Returns:
- a 3D mask
-