Class FluidSetFilter

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

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

    • FluidSetFilter

      public FluidSetFilter(Set<FluidKey> fluids)
  • 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 Set<FluidKey> getFluids()
      Returns:
      The set of fluids that this matches.