net.minecraft.advancements.critereon

public record EnchantmentPredicate

bq
net.minecraft.advancements.critereon.EnchantmentPredicate
net.minecraft.class_2035
net.minecraft.unmapped.C_mybjijbl
net.minecraft.predicate.item.EnchantmentPredicate
net.minecraft.predicate.item.EnchantmentPredicate
net.minecraft.src.C_924_
net.minecraft.advancements.critereon.CriterionConditionEnchantments

Field summary

Modifier and TypeField
private final Optional<HolderSet<Enchantment>>
b
enchantments
comp_2665
f_gzggpkxf
enchantments
enchantments
f_337714_
private final MinMaxBounds$Ints
c
level
comp_1749
f_gtfgsrms
levels
levels
f_30467_
public static final com.mojang.serialization.Codec<EnchantmentPredicate>
a
CODEC
field_45741
f_xabqhcry
CODEC
CODEC
f_291880_

Constructor summary

ModifierConstructor
public (Holder<Enchantment> enchantment, MinMaxBounds$Ints levels)
public (HolderSet<Enchantment> enchantments, MinMaxBounds$Ints levels)
public (Optional<HolderSet<Enchantment>> enchantments, MinMaxBounds$Ints levels)

Method summary

Modifier and TypeMethod
public boolean
a(dai arg0)
containedIn(ItemEnchantments arg0)
method_8880(class_9304 arg0)
m_ucdsbwam(C_qlclfxvn arg0)
test(ItemEnchantmentsComponent enchantmentsComponent)
test(ItemEnchantmentsComponent arg0)
m_30476_(C_313873_ arg0)
private boolean
a(dai arg0, jm<dac> arg1)
matchesEnchantment(ItemEnchantments arg0, Holder<Enchantment> arg1)
method_59916(class_9304 arg0, class_6880<class_1887> arg1)
m_xeebmvqr(C_qlclfxvn arg0, C_cjzoxshv<C_jxtrubuh> arg1)
testLevel(ItemEnchantmentsComponent enchantmentsComponent, RegistryEntry<Enchantment> enchantment)
m_xeebmvqr(ItemEnchantmentsComponent arg0, Holder<Enchantment> enchantment)
m_340071_(C_313873_ p_342249_, C_203228_<C_1505_> arg1)
public Optional<HolderSet<Enchantment>>
a()
enchantments()
comp_2665()
m_vlyxqisq()
enchantments()
enchantments()
f_337714_()
public MinMaxBounds$Ints
b()
level()
comp_1749()
m_ykqvsbmq()
levels()
level()
f_30467_()