Class InvertedFluidFilter
java.lang.Object
alexiil.mc.lib.attributes.fluid.filter.InvertedFluidFilter
- All Implemented Interfaces:
FluidFilter
,ReadableFluidFilter
public final class InvertedFluidFilter extends java.lang.Object implements ReadableFluidFilter
The default implementation for
FluidFilter.negate()
-
Field Summary
Fields Modifier and Type Field Description FluidFilter
delegate
-
Constructor Summary
Constructors Constructor Description InvertedFluidFilter(FluidFilter delegate)
-
Method Summary
Modifier and Type Method Description boolean
matches(FluidKey fluidKey)
Checks to see if the given filter matches the given fluid key.FluidFilter
negate()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface alexiil.mc.lib.attributes.fluid.filter.FluidFilter
and, asPredicate, or
-
Field Details
-
Constructor Details
-
Method Details
-
matches
Description copied from interface:FluidFilter
Checks to see if the given filter matches the given fluid key.- Specified by:
matches
in interfaceFluidFilter
-
negate
- Specified by:
negate
in interfaceFluidFilter
-