Interface Mask
- All Known Implementing Classes:
- ABlockMask,- AbstractDelegateMask,- AbstractExtentMask,- AbstractMask,- Adjacent2DMask,- AdjacentAny2DMask,- AdjacentAnyMask,- AdjacentMask,- AirMask,- AngleMask,- BiomeMask,- BlockCategoryMask,- BlockMask,- BlockStateMask,- BlockTypeMask,- BoundedHeightMask,- CachedMask,- DataMask,- ExistingBlockMask,- ExpressionMask,- ExtremaMask,- IdMask,- ImageBrushMask,- InverseMask,- InverseSingleBlockStateMask,- InverseSingleBlockTypeMask,- LayerBrushMask,- LiquidMask,- MaskIntersection,- Masks.AlwaysFalse,- Masks.AlwaysTrue,- Masks.NegatedMask,- MaskUnion,- NoiseFilter,- OffsetMask,- PlaneMask,- RadiusMask,- RandomMask,- RegionMask,- ROCAngleMask,- SimplexMask,- SingleBlockStateMask,- SingleBlockTypeMask,- SolidBlockMask,- SplatterBrushMask,- StencilBrushMask,- SurfaceAngleMask,- SurfaceMask,- WallMakeMask,- WallMask,- XAxisMask,- YAxisMask,- ZAxisMask
public interface Mask
Tests whether a given vector meets a criteria.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Returns a copy of the mask.default Maskinverse()default Maskoptimize()default booleanbooleantest(BlockVector3 vector) Returns true if the criteria is met.default FiltertoFilter(Consumer<FilterBlock> run) default <T extends Filter>
 MaskFilter<T> toFilter(T filter) default Mask2DtoMask2D()Get the 2D version of this mask if one exists.default MasktryCombine(Mask other) default MaskReturns null if no optimization took place otherwise a new/same maskdefault Mask
- 
Method Details- 
testReturns true if the criteria is met.- Parameters:
- vector- the vector to test
- Returns:
- true if the criteria is met
 
- 
toMask2DGet the 2D version of this mask if one exists.- Returns:
- a 2D mask version or nullif this mask can't be 2D
 
- 
tryOptimizeReturns null if no optimization took place otherwise a new/same mask- Returns:
 
- 
toFilter
- 
tryCombine
- 
tryOr
- 
optimize
- 
inverse
- 
toFilter
- 
replacesAirdefault boolean replacesAir()
- 
copyMask copy()Returns a copy of the mask. Usually for multi-threaded operation- Returns:
- a clone of the mask
 
 
-