Class MaskMemoizer
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask
com.sk89q.worldedit.function.mask.MaskMemoizer
- All Implemented Interfaces:
Mask
,AutoCloseable
A utility mask wrapper that memoizes the results of 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.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MaskMemoizer
-
-
Method Details
-
test
Description copied from interface:Mask
Returns true if the criteria is met. -
clear
public void clear() -
toMask2D
Description copied from interface:Mask
Get the 2D version of this mask if one exists. -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-