Interface InventoryPredicate
- All Superinterfaces:
Predicate<net.minecraft.world.item.ItemStack>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InventoryPredicatestatic final InventoryPredicatestatic final InventoryPredicate -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryPredicateallOf(List<InventoryPredicate> predicates) static InventoryPredicateallOf(InventoryPredicate... predicates) static InventoryPredicateallOf(InventoryPredicate predicate1, InventoryPredicate predicate2) default InventoryPredicateand(InventoryPredicate other) static InventoryPredicateanyOf(List<InventoryPredicate> predicates) static InventoryPredicateanyOf(InventoryPredicate... predicates) static InventoryPredicateanyOf(InventoryPredicate predicate1, InventoryPredicate predicate2) static InventoryPredicatematchesItem(List<net.minecraft.world.item.Item> items) static InventoryPredicatematchesItem(net.minecraft.world.item.Item item) static InventoryPredicatematchesItem(net.minecraft.world.item.Item... items) static InventoryPredicatematchesTag(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> itemTag) static InventoryPredicatenot(InventoryPredicate predicate) static InventoryPredicateCreates a predicate matching items of specific class hierarchydefault InventoryPredicateor(InventoryPredicate other)
-
Field Details
-
IS_DAMAGED
-
IS_FULL_STACK
-
IS_EMPTY
-
-
Method Details
-
ofType
Creates a predicate matching items of specific class hierarchy- Parameters:
itemType- Target class to match (e.g., SwordItem.class)- Returns:
- New predicate instance
-
allOf
-
allOf
-
allOf
-
anyOf
-
anyOf
-
anyOf
-
matchesItem
-
matchesItem
-
matchesItem
-
matchesTag
static InventoryPredicate matchesTag(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> itemTag) -
and
-
or
-
not
-