public static class ItemFilters.BooleanFilter extends java.lang.Object implements IItemFilter
Modifier and Type | Field and Description |
---|---|
private static java.util.function.Predicate<IItem> |
ALWAYSFALSE |
private static java.util.function.Predicate<IItem> |
ALWAYSTRUE |
boolean |
value |
Modifier | Constructor and Description |
---|---|
protected |
BooleanFilter(boolean value) |
Modifier and Type | Method and Description |
---|---|
java.util.function.Predicate<IItem> |
getPredicate(IType<IItem> type) |
public boolean value
private static final java.util.function.Predicate<IItem> ALWAYSTRUE
private static final java.util.function.Predicate<IItem> ALWAYSFALSE
public java.util.function.Predicate<IItem> getPredicate(IType<IItem> type)
getPredicate
in interface IItemFilter
type
- the item type to get a predicate for