Class FluidSetFilter

java.lang.Object
alexiil.mc.lib.attributes.fluid.filter.FluidSetFilter
All Implemented Interfaces:
FluidFilter, ReadableFluidFilter

public final class FluidSetFilter
extends java.lang.Object
implements ReadableFluidFilter
A FluidFilter that matches any FluidKey in a Set of FluidKeys.
  • Constructor Summary

    Constructors 
    Constructor Description
    FluidSetFilter​(java.util.Set<FluidKey> fluids)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Set<FluidKey> getFluids()  
    boolean matches​(FluidKey fluidKey)
    Checks to see if the given filter matches the given fluid key.

    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
  • Constructor Details

  • Method Details

    • matches

      public boolean matches​(FluidKey fluidKey)
      Description copied from interface: FluidFilter
      Checks to see if the given filter matches the given fluid key.
      Specified by:
      matches in interface FluidFilter
    • getFluids

      public java.util.Set<FluidKey> getFluids()
      Returns:
      The set of fluids that this matches.