Class BlockMatcher

java.lang.Object
com.sk89q.worldguard.blacklist.target.BlockMatcher
All Implemented Interfaces:
TargetMatcher

public class BlockMatcher extends Object implements TargetMatcher
  • Constructor Details

    • BlockMatcher

      public BlockMatcher(com.sk89q.worldedit.world.block.BlockType type)
  • Method Details

    • getMatchedTypeId

      public String getMatchedTypeId()
      Description copied from interface: TargetMatcher
      Get the matched type ID, which is merely used for indexing.
      Specified by:
      getMatchedTypeId in interface TargetMatcher
      Returns:
      the type ID
    • test

      public boolean test(Target target)
      Description copied from interface: TargetMatcher
      Return whether the given target is matched by this matcher.
      Specified by:
      test in interface TargetMatcher
      Parameters:
      target - the target
      Returns:
      true if matched