Interface FluidFilter
- All Known Subinterfaces:
ReadableFluidFilter
,ResolvableFluidFilter
- All Known Implementing Classes:
AggregateFluidFilter
,ConstantFluidFilter
,ExactFluidFilter
,FluidInsertableFilter
,FluidSetFilter
,FluidTagFilter
,FluidTypeFilter
,FluidTypeFilter.FluidFloatingEntryFilter
,FluidTypeFilter.RawFluidFilter
,FluidTypeFilter.RegisteredTypeFilter
,InvertedFluidFilter
,RawFluidTagFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A general
Predicate
interface for FluidKey
s.
3 basic implementations are provided:
ConstantFluidFilter
for filters that always match or never match.ExactFluidFilter
for a filter that matches on a singleFluidKey
, and rejects others.AggregateFluidFilter
for a filter that either AND's or OR's several otherFluidFilter
's into one.
-
Method Summary
Modifier and TypeMethodDescriptiondefault FluidFilter
and(FluidFilter other)
boolean
Checks to see if the given filter matches the given fluid key.default FluidFilter
negate()
default FluidFilter
or(FluidFilter other)
-
Method Details
-
matches
Checks to see if the given filter matches the given fluid key.- Throws:
IllegalArgumentException
- if the givenFluidKey
isempty
.
-
negate
-
and
-
or
-
asPredicate
-