22 lines
563 B
Java
22 lines
563 B
Java
package com.onarandombox.MultiverseCore.display.filters;
|
|
|
|
/**
|
|
* Filter display content for it show only certain string.
|
|
*/
|
|
public interface ContentFilter {
|
|
/**
|
|
* Checks if a particular string should be displayed.
|
|
*
|
|
* @param value String to check on.
|
|
* @return True if should be display, false otherwise.
|
|
*/
|
|
boolean checkMatch(String value);
|
|
|
|
/**
|
|
* Gets whether content needs to be filtered by this filter.
|
|
*
|
|
* @return True if content should be filtered, false otherwise.
|
|
*/
|
|
boolean needToFilter();
|
|
}
|