@FunctionalInterface
public interface IItemStackQuery
extends java.util.function.Predicate<net.minecraft.item.ItemStack>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IItemStackQuery.IItemStackNBTQuery |
static interface |
IItemStackQuery.IItemStackQueryRecipe |
static class |
IItemStackQuery.IngredientQuery |
static class |
IItemStackQuery.ItemQuery |
static class |
IItemStackQuery.ItemStackQuery |
| Modifier and Type | Field and Description |
|---|---|
static IItemStackQuery |
ANYTHING |
static IItemStackQuery |
NOTHING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(net.minecraft.item.ItemStack stack) |
static IItemStackQuery |
of(net.minecraft.block.Block block) |
static IItemStackQuery |
of(net.minecraft.item.Item item) |
static IItemStackQuery |
of(net.minecraft.item.ItemStack stack) |
default boolean |
test(net.minecraft.item.ItemStack stack) |
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> |
toSlotFilter() |
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> |
toSlotFilter(int... slots) |
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> |
toSlotFilter(int min,
int max) |
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> |
toSlotFilter(java.util.function.Predicate<java.lang.Integer> slotPredicate) |
static final IItemStackQuery ANYTHING
static final IItemStackQuery NOTHING
static IItemStackQuery of(net.minecraft.item.Item item)
static IItemStackQuery of(net.minecraft.item.ItemStack stack)
static IItemStackQuery of(net.minecraft.block.Block block)
boolean matches(net.minecraft.item.ItemStack stack)
default boolean test(net.minecraft.item.ItemStack stack)
test in interface java.util.function.Predicate<net.minecraft.item.ItemStack>default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> toSlotFilter(int... slots)
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> toSlotFilter(java.util.function.Predicate<java.lang.Integer> slotPredicate)
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> toSlotFilter(int min,
int max)
default java.util.function.BiPredicate<net.minecraft.item.ItemStack,java.lang.Integer> toSlotFilter()