net.minecraft.advancements.critereon

public record ItemPredicate

implements Predicate<ItemStack>

cs
net.minecraft.advancements.critereon.ItemPredicate
net.minecraft.class_2073
net.minecraft.predicate.item.ItemPredicate
net.minecraft.src.C_1529_
net.minecraft.advancements.critereon.CriterionConditionItem

Field summary

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

Constructor summary

ModifierConstructor
public (Optional<HolderSet<Item>> count, MinMaxBounds$Ints components, DataComponentPredicate subPredicates, Map<ItemSubPredicate$Type<?>, ItemSubPredicate> arg3)

Method summary

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