Class ItemInsertableFilter

java.lang.Object
alexiil.mc.lib.attributes.item.filter.ItemInsertableFilter
All Implemented Interfaces:
ItemFilter

public final class ItemInsertableFilter
extends java.lang.Object
implements ItemFilter
An ItemFilter that checks to see if the given ItemInsertable could have the stack inserted into it, right now.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.filter.ItemFilter

    ItemFilter.ItemFilterAsPredicate
  • Field Summary

    Fields 
    Modifier and Type Field Description
    ItemInsertable insertable  
  • Constructor Summary

    Constructors 
    Constructor Description
    ItemInsertableFilter​(ItemInsertable insertable)  
  • Method Summary

    Modifier and Type Method Description
    boolean matches​(net.minecraft.item.ItemStack stack)
    Checks to see if this filter matches the given stack.

    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.item.filter.ItemFilter

    and, asPredicate, negate, or
  • Field Details

  • Constructor Details

  • Method Details

    • matches

      public boolean matches​(net.minecraft.item.ItemStack stack)
      Description copied from interface: ItemFilter
      Checks to see if this filter matches the given stack. Note that this must not care about ItemStack.getCount(), except in the case where the stack is ItemStack.isEmpty(), which isn't expected to return a useful result.
      Specified by:
      matches in interface ItemFilter