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.
@FunctionalInterface
public interface FluidFilter
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 Type Method Description default FluidFilterand(FluidFilter other)default java.util.function.Predicate<FluidKey>asPredicate()booleanmatches(FluidKey fluidKey)Checks to see if the given filter matches the given fluid key.default FluidFilternegate()default FluidFilteror(FluidFilter other)