Class ExactFluidFilter
java.lang.Object
alexiil.mc.lib.attributes.fluid.filter.ExactFluidFilter
- All Implemented Interfaces:
FluidFilter
,ReadableFluidFilter
An
FluidFilter
that only matches on a single FluidKey
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks to see if the given filter matches the given fluid key.static ReadableFluidFilter
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
-
fluid
-
-
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
-