Class FluidInsertableFilter

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

public final class FluidInsertableFilter
extends java.lang.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 Summary

    Fields 
    Modifier and Type Field Description
    FluidInsertable insertable  
  • Constructor Summary

    Constructors 
    Constructor Description
    FluidInsertableFilter​(FluidInsertable insertable)  
  • Method Summary

    Modifier and Type Method Description
    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