Class MaskMemoizer2D
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask2D
com.sk89q.worldedit.function.mask.MaskMemoizer2D
- All Implemented Interfaces:
Mask2D
,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
Modifier and TypeMethodDescriptionvoid
clear()
void
close()
boolean
test
(BlockVector2 vector) Returns true if the criteria is met.
-
Constructor Details
-
MaskMemoizer2D
-
-
Method Details