Class FluidInsertableFilter

java.lang.Object
alexiil.mc.lib.attributes.fluid.filter.FluidInsertableFilter
All Implemented Interfaces:
FluidFilter

public final class FluidInsertableFilter extends Object implements FluidFilter
A FluidFilter that checks to see if the given FluidInsertable could have the fluid inserted into it, right now. (Note that this doesn't match the definition of FluidInsertable.getInsertionFilter(), so you should never use it a return value from that).
  • Field Details

  • Constructor Details

    • FluidInsertableFilter

      public FluidInsertableFilter(FluidInsertable insertable)
  • 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