Package de.themoep.utils
Class ItemMatcher.MatchDefinition
java.lang.Object
de.themoep.utils.ItemMatcher.MatchDefinition
- Enclosing class:
ItemMatcher
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMatchDefinition
(org.bukkit.plugin.java.JavaPlugin plugin, String name, org.bukkit.configuration.ConfigurationSection config) MatchDefinition
(org.bukkit.plugin.java.JavaPlugin plugin, org.bukkit.configuration.ConfigurationSection config) -
Method Summary
-
Constructor Details
-
MatchDefinition
public MatchDefinition(org.bukkit.plugin.java.JavaPlugin plugin, org.bukkit.configuration.ConfigurationSection config) -
MatchDefinition
public MatchDefinition(org.bukkit.plugin.java.JavaPlugin plugin, String name, org.bukkit.configuration.ConfigurationSection config)
-
-
Method Details
-
matches
public boolean matches(org.bukkit.inventory.ItemStack item) -
isDefault
public boolean isDefault()Check whether or not this is the default definition- Returns:
- Whether or not it is the default definition
-
getName
The name of the definition- Returns:
- The name of the definition
-