Class ItemBlockMatcher
java.lang.Object
com.sk89q.worldguard.blacklist.target.ItemBlockMatcher
- All Implemented Interfaces:
TargetMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the matched type ID, which is merely used for indexing.booleanReturn whether the given target is matched by this matcher.
-
Constructor Details
-
ItemBlockMatcher
public ItemBlockMatcher(com.sk89q.worldedit.world.block.BlockType type)
-
-
Method Details
-
getMatchedTypeId
Description copied from interface:TargetMatcherGet the matched type ID, which is merely used for indexing.- Specified by:
getMatchedTypeIdin interfaceTargetMatcher- Returns:
- the type ID
-
test
Description copied from interface:TargetMatcherReturn whether the given target is matched by this matcher.- Specified by:
testin interfaceTargetMatcher- Parameters:
target- the target- Returns:
- true if matched
-