Class DisplayNameEqualsRegex

java.lang.Object
fr.andross.banitem.items.meta.MetaTypeComparator
fr.andross.banitem.items.meta.DisplayNameEqualsRegex

public final class DisplayNameEqualsRegex extends MetaTypeComparator
A simple meta comparator to compare the display name with regex.
Version:
3.4.1
Author:
Andross
  • Constructor Details

    • DisplayNameEqualsRegex

      public DisplayNameEqualsRegex(Object configurationProperties, Debug debug)
      Prepare the configured property to be compared with an item.
      Parameters:
      configurationProperties - the configured property value
      debug - the debug handler
  • Method Details

    • matches

      public boolean matches(@NotNull @NotNull BannedItem bannedItem)
      Description copied from class: MetaTypeComparator
      Check if the meta type configured matches on the item involved.
      Specified by:
      matches in class MetaTypeComparator
      Parameters:
      bannedItem - the current item involved
      Returns:
      true if the meta is present on the item, otherwise false