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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks to see if the given filter matches the given fluid key.static ReadableFluidFilterstatic ReadableFluidFilterof(net.minecraft.fluid.Fluid fluid) static ReadableFluidFilterof(net.minecraft.potion.Potion potion) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 everyFluidKeycontains a field for storing this (FluidKey.exactFilter).
-
-
Method Details
-
matches
Description copied from interface:FluidFilterChecks to see if the given filter matches the given fluid key.- Specified by:
matchesin interfaceFluidFilter
-
of
-
of
-
of
-