Class BlockMask

java.lang.Object
com.hypixel.hytale.server.core.prefab.selection.mask.BlockMask
Direct Known Subclasses:
MultiBlockMask

public class BlockMask extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • withOptions

      @Nonnull public BlockMask withOptions(@Nonnull BlockFilter.FilterType filterType, boolean inverted)
    • getFilters

      public BlockFilter[] 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. The selectionMin and selectionMax bounds 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

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • informativeToString

      @Nonnull public String informativeToString()
    • parse

      public static BlockMask parse(@Nonnull String masks)
    • parse

      public static BlockMask parse(@Nonnull String[] masks)
    • combine

      public static BlockMask combine(@Nullable BlockMask... masks)