Interface ItemMetaComparator
- All Superinterfaces:
ItemComparator<org.bukkit.inventory.ItemStack>
- All Known Implementing Classes:
EnchantmentModifier,ItemFlagModifier,LoreModifier,NameModifier,PotionEffectModifier
An extension of
ItemComparator for ItemMeta-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancompare(@NotNull org.bukkit.inventory.ItemStack item, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer) Compare the modifier of an itembooleancompare(@NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer) Compare the modifier of an item metaMethods 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 metauuid- the unique idstringReplacer- 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:ItemComparatorCompare the modifier of an item- Specified by:
comparein interfaceItemComparator<org.bukkit.inventory.ItemStack>- Parameters:
item- the itemuuid- the unique idstringReplacer- the string replacer- Returns:
- true if it matches, otherwise false
-