Interface InventorySearcher
public interface InventorySearcher
-
Method Summary
Modifier and TypeMethodDescriptionfindFirstMatchingSlot(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher) findMatchingSlots(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher) getMatchingSlotsByPriority(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher, ToIntFunction<net.minecraft.world.item.ItemStack> priorityMapper) Multimap of Priority -> SlotgetSlotsByPriority(net.minecraft.world.Container inventory, ToIntFunction<net.minecraft.world.item.ItemStack> priorityMapper) Multimap of Priority -> SlotbooleanhasSlotMatching(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher)
-
Method Details
-
hasSlotMatching
boolean hasSlotMatching(net.minecraft.world.Container inventory, Predicate<net.minecraft.world.item.ItemStack> matcher) -
findFirstMatchingSlot
-
findMatchingSlots
-
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
-