Class ConfigSearchQuery

java.lang.Object
johnsmith.configoverhauled.impl.client.gui.screen.component.ConfigSearchQuery

public final class ConfigSearchQuery extends Object
Parses and evaluates tagged search queries for the configuration UI.

Supported tags:

  • #group:<term> — matches the group's translated name or Group.id()
  • #id:<term> — matches the property's internal id (Property.resourceName() or Property.getUniqueId())
  • #key:<term> — matches the property's translation key (Property.translationKey()) or Property.resourceName()
  • #word:<term> — matches words in the property's translated name and description/tooltip
  • #scope:<term> — matches the property's Property.scope() (client, global, level)
  • #modified / #modified:<true|false> — matches properties differing from their default value
  • #locked / #locked:<true|false> — matches properties locked by the remote server
Untyped terms match against the property's translated name, translation key, or resource name. Multiple tags and untyped terms may be combined in a single query (logical AND).
  • Field Details

  • Method Details

    • parse

      public static ConfigSearchQuery parse(String rawQuery)
    • isEmpty

      public boolean isEmpty()
    • matches

      public boolean matches(Group group, Property<?> property)
    • matches

      public boolean matches(Group group, Property<?> property, boolean isLocked)