Class PatternUtils

java.lang.Object
wtf.choco.veinminer.pattern.PatternUtils

public final class PatternUtils extends Object
Utility methods for implementing VeinMiningPatterns.
  • Method Details

    • typeMatches

      public static boolean typeMatches(@NotNull @NotNull VeinMinerBlock block, @Nullable @Nullable BlockList aliasList, @NotNull @NotNull BlockState current)
      Check whether or not the given BlockState matches either the VeinMinerBlock or is present in the given BlockList.
      Parameters:
      block - the block against which to check the state
      aliasList - the alias list, or null if no aliases
      current - the current block state to check
      Returns:
      true if current either matches state with the block or is contained in the alias list, false otherwise