Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- withOptions(BlockFilter.FilterType, boolean)
- getFilters()
- setInverted(boolean)
- isInverted()
- hasInvalidBlocks()
- isExcluded(BlockReader, int, int, int, Vector3i, Vector3i, int)
- isExcluded(BlockReader, int, int, int, Vector3i, Vector3i, int, int)
- toString()
- informativeToString()
- parse(String)
- parse(String[])
- combine(BlockMask...)
Class BlockMask
java.lang.Object
com.hypixel.hytale.server.core.prefab.selection.mask.BlockMask
- Direct Known Subclasses:
MultiBlockMask
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockMaskbooleanbooleanisExcluded(BlockReader accessor, int x, int y, int z, org.joml.Vector3i selectionMin, org.joml.Vector3i selectionMax, int blockId) booleanisExcluded(BlockReader accessor, int x, int y, int z, org.joml.Vector3i selectionMin, org.joml.Vector3i selectionMax, int blockId, int fluidId) Tests whether the mask excludes the given position.booleanstatic BlockMaskstatic BlockMaskvoidsetInverted(boolean inverted) toString()withOptions(BlockFilter.FilterType filterType, boolean inverted)
-
Field Details
-
EMPTY
-
CODEC
-
MASK_SEPARATOR
- See Also:
-
ALT_MASK_SEPARATOR
- See Also:
-
EMPTY_MASK_CHARACTER
- See Also:
-
OR_MASK_SEPARATOR
- See Also:
-
-
Constructor Details
-
BlockMask
-
-
Method Details
-
withOptions
-
getFilters
-
setInverted
public void setInverted(boolean inverted) -
isInverted
public boolean isInverted() -
hasInvalidBlocks
public boolean hasInvalidBlocks() -
isExcluded
public boolean isExcluded(@Nonnull BlockReader accessor, int x, int y, int z, @Nullable org.joml.Vector3i selectionMin, @Nullable org.joml.Vector3i selectionMax, int blockId) -
isExcluded
public boolean isExcluded(@Nonnull BlockReader accessor, int x, int y, int z, @Nullable org.joml.Vector3i selectionMin, @Nullable org.joml.Vector3i selectionMax, int blockId, int fluidId) Tests whether the mask excludes the given position. TheselectionMinandselectionMaxbounds are the area that the#filter matches against, so callers must pass the player's selection rather than the area their own operation happens to cover. Pass null when there is no selection. -
toString
-
informativeToString
-
parse
-
parse
-
combine
-