Class ItemMatcher
java.lang.Object
com.sk89q.worldguard.blacklist.target.ItemMatcher
- All Implemented Interfaces:
TargetMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the matched type ID, which is merely used for indexing.boolean
Return whether the given target is matched by this matcher.
-
Constructor Details
-
ItemMatcher
public ItemMatcher(com.sk89q.worldedit.world.item.ItemType type)
-
-
Method Details
-
getMatchedTypeId
Description copied from interface:TargetMatcher
Get the matched type ID, which is merely used for indexing.- Specified by:
getMatchedTypeId
in interfaceTargetMatcher
- Returns:
- the type ID
-
test
Description copied from interface:TargetMatcher
Return whether the given target is matched by this matcher.- Specified by:
test
in interfaceTargetMatcher
- Parameters:
target
- the target- Returns:
- true if matched
-