Class ExactFluidFilter
java.lang.Object
alexiil.mc.lib.attributes.fluid.filter.ExactFluidFilter
- All Implemented Interfaces:
FluidFilter
,ReadableFluidFilter
public final class ExactFluidFilter extends java.lang.Object implements ReadableFluidFilter
An
FluidFilter
that only matches on a single FluidKey
.-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExactFluidFilter(FluidKey fluid)
Creates a newExactFluidFilter
. -
Method Summary
Modifier and Type Method Description boolean
matches(FluidKey other)
Checks to see if the given filter matches the given fluid key.static ReadableFluidFilter
of(FluidKey fluid)
static ReadableFluidFilter
of(net.minecraft.fluid.Fluid fluid)
static ReadableFluidFilter
of(net.minecraft.potion.Potion potion)
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, negate, or
-
Field Details
-
Constructor Details
-
ExactFluidFilter
Creates a newExactFluidFilter
. There's generally little point in using this, as everyFluidKey
contains a field for storing this (FluidKey.exactFilter
).
-
-
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
-
of
-
of
-
of
-