public class BlockMask extends AbstractExtentMask
This mask checks for both an exact block ID and data value match, as well for a block with the same ID but a data value of -1.
| Constructor and Description |
|---|
BlockMask(Extent extent,
BaseBlock... block)
Create a new block mask.
|
BlockMask(Extent extent,
Collection<BaseBlock> blocks)
Create a new block mask.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(BaseBlock... block)
Add the given blocks to the list of criteria.
|
void |
add(Collection<BaseBlock> blocks)
Add the given blocks to the list of criteria.
|
Collection<BaseBlock> |
getBlocks()
Get the list of blocks that are tested with.
|
boolean |
test(Vector vector)
Returns true if the criteria is met.
|
Mask2D |
toMask2D()
Get the 2D version of this mask if one exists.
|
getExtent, setExtentpublic BlockMask(Extent extent, Collection<BaseBlock> blocks)
extent - the extentblocks - a list of blocks to matchpublic void add(Collection<BaseBlock> blocks)
blocks - a list of blockspublic void add(BaseBlock... block)
block - an array of blockspublic Collection<BaseBlock> getBlocks()
public boolean test(Vector vector)
Maskvector - the vector to testCopyright © 2010-2014. All Rights Reserved.