Interface TargetMatcher

All Known Implementing Classes:
BlockMatcher, ItemBlockMatcher, ItemMatcher

public interface TargetMatcher
Matches a Target.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the matched type ID, which is merely used for indexing.
    boolean
    test(Target target)
    Return whether the given target is matched by this matcher.
  • Method Details

    • getMatchedTypeId

      String getMatchedTypeId()
      Get the matched type ID, which is merely used for indexing.
      Returns:
      the type ID
    • test

      boolean test(Target target)
      Return whether the given target is matched by this matcher.
      Parameters:
      target - the target
      Returns:
      true if matched