Class ItemMatcher.MatchDefinition

java.lang.Object
de.themoep.utils.ItemMatcher.MatchDefinition
Enclosing class:
ItemMatcher

public static class ItemMatcher.MatchDefinition
extends Object
  • 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

      public String getName()
      The name of the definition
      Returns:
      The name of the definition