net.minecraft.core.component.predicates

public record ContainerPredicate

implements SingleComponentItemPredicate<ItemContainerContents>

kp
net.minecraft.core.component.predicates.ContainerPredicate
net.minecraft.class_9656
net.minecraft.predicate.item.ContainerPredicate

Field summary

Modifier and TypeField
private final Optional<CollectionPredicate<ItemStack, ItemPredicate>>
c
items
comp_2631
items
public static final com.mojang.serialization.Codec<ContainerPredicate>
a
CODEC
field_51381
CODEC

Constructor summary

ModifierConstructor
public (Optional<CollectionPredicate<ItemStack, ItemPredicate>> arg0)

Method summary

Modifier and TypeMethod
public DataComponentType<ItemContainerContents>
a()
componentType()
method_58163()
getComponentType()
public boolean
a(dbk arg0)
matches(ItemContainerContents arg0)
method_59675(class_9288 arg0)
test(ContainerComponent arg0)
public Optional<CollectionPredicate<ItemStack, ItemPredicate>>
b()
items()
comp_2631()
items()