Interface InventorySearcher


public interface InventorySearcher
  • Method Details

    • hasSlotMatching

      boolean hasSlotMatching(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher)
    • findFirstMatchingSlot

      Optional<Integer> findFirstMatchingSlot(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher)
    • findMatchingSlots

      List<Integer> findMatchingSlots(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher)
    • getMatchingSlotsByPriority

      com.google.common.collect.Multimap<Integer,Integer> getMatchingSlotsByPriority(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher, ToIntFunction<net.minecraft.world.item.ItemStack> priorityMapper)
      Multimap of Priority -> Slot
    • getSlotsByPriority

      com.google.common.collect.Multimap<Integer,Integer> getSlotsByPriority(net.minecraft.world.Container inventory, ToIntFunction<net.minecraft.world.item.ItemStack> priorityMapper)
      Multimap of Priority -> Slot