public class BiomeMask extends AbstractMask
Constructor and Description |
---|
BiomeMask(Extent extent,
BiomeType... biome)
Create a new biome mask.
|
BiomeMask(Extent extent,
java.util.Collection<BiomeType> biomes)
Create a new biome mask.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BiomeType... biome)
Add the given biomes to the list of criteria.
|
void |
add(java.util.Collection<BiomeType> biomes)
Add the given biomes to the list of criteria.
|
java.util.Collection<BiomeType> |
getBiomes()
Get the list of biomes that are tested with.
|
boolean |
test(BlockVector3 vector)
Returns true if the criteria is met.
|
Mask2D |
toMask2D()
Get the 2D version of this mask if one exists.
|
public BiomeMask(Extent extent, java.util.Collection<BiomeType> biomes)
extent
- the extentbiomes
- a list of biomes to matchpublic void add(java.util.Collection<BiomeType> biomes)
biomes
- a list of biomespublic void add(BiomeType... biome)
biome
- an array of biomespublic java.util.Collection<BiomeType> getBiomes()
public boolean test(BlockVector3 vector)
Mask
vector
- the vector to test