net.minecraft.predicate.item

public record PotionContentsPredicate

implements ComponentSubPredicate<PotionContentsComponent>

net.minecraft.core.component.predicates.PotionsPredicate
net.minecraft.class_9359
net.minecraft.predicate.item.PotionContentsPredicate

Field summary

Modifier and TypeField
private final RegistryEntryList<Potion>
potions
comp_2461
potions
public static final com.mojang.serialization.Codec<PotionContentsPredicate>
CODEC
field_49802
CODEC

Constructor summary

ModifierConstructor
public (RegistryEntryList<Potion> potions)

Method summary

Modifier and TypeMethod
public ComponentType<PotionContentsComponent>
componentType()
method_58163()
getComponentType()
public boolean
matches(PotionContents potionContents)
method_58177(class_1844 arg0)
test(PotionContentsComponent arg0)
public static ComponentPredicate
potions(HolderSet<Potion> potions)
method_58178(class_6885<class_1842> arg0)
potionContents(RegistryEntryList<Potion> potions)
public RegistryEntryList<Potion>
potions()
comp_2461()
potions()
public boolean
matches(Object potionContents)
method_58167(Object arg0)
test(Object arg0)