Package de.themoep.utils
Class ItemMatcher
java.lang.Object
de.themoep.utils.ItemMatcher
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionItemMatcher
(org.bukkit.plugin.java.JavaPlugin plugin, org.bukkit.configuration.ConfigurationSection config) -
Method Summary
Modifier and TypeMethodDescriptiongetMatching
(org.bukkit.inventory.ItemStack item) Get the matching definition
-
Constructor Details
-
ItemMatcher
public ItemMatcher(org.bukkit.plugin.java.JavaPlugin plugin, org.bukkit.configuration.ConfigurationSection config) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getMatching
Get the matching definition- Parameters:
item
- The item to match against- Returns:
- The matching definition or null if none match. The default one will have a "null" name!
-