net.minecraft.predicate.item

public record ItemPredicate

implements Predicate<ItemStackView>

net.minecraft.advancements.predicates.ItemPredicate
net.minecraft.advancements.predicates.ItemPredicate
net.minecraft.class_2073
net.minecraft.predicate.item.ItemPredicate

Field summary

Modifier and TypeField
private final Optional<RegistryEntryList<Item>>
items
items
comp_1784
items
private final NumberRange$IntRange
count
count
comp_1785
count
private final ComponentsPredicate
components
components
comp_2374
components
public static final com.mojang.serialization.Codec<ItemPredicate>
CODEC
CODEC
field_45754
CODEC

Constructor summary

ModifierConstructor
public (Optional<RegistryEntryList<Item>> items, NumberRange$IntRange count, ComponentsPredicate components)

Method summary

Modifier and TypeMethod
public boolean
test(ItemInstance itemStack)
test(ItemInstance itemStack)
method_8970(class_1_96 arg0)
test(ItemStackView arg0)
public Optional<RegistryEntryList<Item>>
items()
items()
comp_1784()
items()
public NumberRange$IntRange
count()
count()
comp_1785()
count()
public ComponentsPredicate
components()
components()
comp_2374()
components()