Class AggregateFluidFilter
java.lang.Object
alexiil.mc.lib.attributes.fluid.filter.AggregateFluidFilter
- All Implemented Interfaces:
FluidFilter,ReadableFluidFilter,Iterable<FluidFilter>
public class AggregateFluidFilter
extends Object
implements ReadableFluidFilter, Iterable<FluidFilter>
An
FluidFilter over a predefined array of FluidFilter's. You can either iterate over this object
directly or use getFilterCount() and getFilter(int) to read every filter individually.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FluidFilterallOf(FluidFilter... filters)static FluidFilterallOf(List<? extends FluidFilter> filters)static FluidFilterand(FluidFilter filterA, FluidFilter filterB)static FluidFilteranyOf(FluidFilter... filters)static FluidFilteranyOf(List<? extends FluidFilter> filters)static FluidFiltercombine(AggregateFilterType type, FluidFilter... filters)static FluidFiltercombine(AggregateFilterType type, FluidFilter filterA, FluidFilter filterB)static FluidFiltercombine(AggregateFilterType type, List<? extends FluidFilter> filters)getFilter(int index)intiterator()booleanChecks to see if the given filter matches the given fluid key.static FluidFilteror(FluidFilter filterA, FluidFilter filterB)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, orMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
type
-
-
Constructor Details
-
AggregateFluidFilter
-
-
Method Details
-
and
- Returns:
- An
AggregateFluidFilterthat contains both of the given filters. This might not return a new object if either of the filters contains the other.
-
or
- Returns:
- An
AggregateFluidFilterthat contains both of the given filters. This might not return a new object if either of the filters contains the other.
-
combine
public static FluidFilter combine(AggregateFilterType type, FluidFilter filterA, FluidFilter filterB) -
allOf
-
anyOf
-
combine
-
allOf
-
anyOf
-
combine
-
matches
Description copied from interface:FluidFilterChecks to see if the given filter matches the given fluid key.- Specified by:
matchesin interfaceFluidFilter
-
getFilterCount
public int getFilterCount() -
getFilter
-
iterator
- Specified by:
iteratorin interfaceIterable<FluidFilter>
-