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 FluidKeys.
3 basic implementations are provided:
ConstantFluidFilterfor filters that always match or never match.ExactFluidFilterfor a filter that matches on a singleFluidKey, and rejects others.AggregateFluidFilterfor a filter that either AND's or OR's several otherFluidFilter's into one.
-
Method Summary
Modifier and TypeMethodDescriptiondefault FluidFilterand(FluidFilter other)booleanChecks to see if the given filter matches the given fluid key.default FluidFilternegate()default FluidFilteror(FluidFilter other)
-
Method Details
-
matches
Checks to see if the given filter matches the given fluid key.- Throws:
IllegalArgumentException- if the givenFluidKeyisempty.
-
negate
-
and
-
or
-
asPredicate
-