Interface FilterConfig<F extends Filter<F,​C>,​C extends FilterConfig<F,​C>>

    • Method Detail

      • getFilter

        @NotNull
        F getFilter()
        Returns the Filter this filter config belongs to.
        Returns:
        the filter
      • setEnabled

        void setEnabled​(boolean enabled)
        Enables or disables the filter.
        Parameters:
        enabled - whether the filter should be enabled
      • isEnabled

        boolean isEnabled()
        Returns whether the filter is enabled.
        Returns:
        whether the filter is enabled
      • match

        boolean match​(@NotNull
                      @NotNull GameObject<?,​?,​?> gameObject)
        Tells whether we got a match on specific GameObject. The analysis tool will call this function with every game object on a given map square. The match function is responsible for analyzing inventories if it needs to.
        Parameters:
        gameObject - the game object being analyzed on the map
        Returns:
        whether it matches the criteria
      • reset

        boolean reset()
        Tells the filter we have finished with current map square and, perhaps, we are jumping on next one.
        Returns:
        whether we had a global match on the map square