Interface ItemMetaComparator

All Superinterfaces:
ItemComparator<org.bukkit.inventory.ItemStack>
All Known Implementing Classes:
EnchantmentModifier, ItemFlagModifier, LoreModifier, NameModifier, PotionEffectModifier, SkullModifier

public interface ItemMetaComparator extends ItemComparator<org.bukkit.inventory.ItemStack>
An extension of ItemComparator for ItemMeta
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    compare(@NotNull org.bukkit.inventory.ItemStack item, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer)
    Compare the modifier of an item
    boolean
    compare(@NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer)
    Compare the modifier of an item meta

    Methods inherited from interface me.hsgamer.hscore.minecraft.item.ItemComparator

    compare, compare
  • Method Details

    • compare

      boolean compare(@NotNull @NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable @Nullable UUID uuid, @NotNull @NotNull StringReplacer stringReplacer)
      Compare the modifier of an item meta
      Parameters:
      meta - the item meta
      uuid - the unique id
      stringReplacer - the string replacer
      Returns:
      true if it matches, otherwise false
      See Also:
    • compare

      default boolean compare(@NotNull @NotNull org.bukkit.inventory.ItemStack item, @Nullable @Nullable UUID uuid, @NotNull @NotNull StringReplacer stringReplacer)
      Description copied from interface: ItemComparator
      Compare the modifier of an item
      Specified by:
      compare in interface ItemComparator<org.bukkit.inventory.ItemStack>
      Parameters:
      item - the item
      uuid - the unique id
      stringReplacer - the string replacer
      Returns:
      true if it matches, otherwise false