net.minecraft.advancements.critereon

public record ItemPredicate

implements Predicate<ItemStack>

cv
net.minecraft.advancements.critereon.ItemPredicate
net.minecraft.class_2073
net.minecraft.predicate.item.ItemPredicate
net.minecraft.advancements.critereon.CriterionConditionItem

Field summary

Modifier and TypeField
private final Optional<HolderSet<Item>>
b
items
comp_1784
items
private final MinMaxBounds$Ints
c
count
comp_1785
count
private final DataComponentPredicate
d
components
comp_2374
components
private final Map<ItemSubPredicate$Type<?>, ItemSubPredicate>
e
subPredicates
comp_2462
subPredicates
public static final com.mojang.serialization.Codec<ItemPredicate>
a
CODEC
field_45754
CODEC

Constructor summary

ModifierConstructor
public (Optional<HolderSet<Item>> arg0, MinMaxBounds$Ints arg1, DataComponentPredicate arg2, Map<ItemSubPredicate$Type<?>, ItemSubPredicate> arg3)

Method summary

Modifier and TypeMethod
public boolean
a(cwq arg0)
test(ItemStack arg0)
method_8970(class_1799 arg0)
test(ItemStack stack)
public Optional<HolderSet<Item>>
a()
items()
comp_1784()
items()
public MinMaxBounds$Ints
b()
count()
comp_1785()
count()
public DataComponentPredicate
c()
components()
comp_2374()
components()
public Map<ItemSubPredicate$Type<?>, ItemSubPredicate>
d()
subPredicates()
comp_2462()
subPredicates()