Class ItemInsertableFilter

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

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

  • Constructor Details

    • ItemInsertableFilter

      public ItemInsertableFilter(ItemInsertable insertable)
  • 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