net.minecraft.advancements.critereon

public record EnchantmentPredicate

bq
net.minecraft.advancements.critereon.EnchantmentPredicate
net.minecraft.class_2035
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
enchantments
f_337714_
private final MinMaxBounds$Ints
c
level
comp_1749
levels
f_30467_
public static final com.mojang.serialization.Codec<EnchantmentPredicate>
a
CODEC
field_45741
CODEC
f_291880_

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
a(dai arg0)
containedIn(ItemEnchantments arg0)
method_8880(class_9304 arg0)
test(ItemEnchantmentsComponent enchantmentsComponent)
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)
testLevel(ItemEnchantmentsComponent enchantmentsComponent, RegistryEntry<Enchantment> enchantment)
m_340071_(C_313873_ p_342249_, C_203228_<C_1505_> arg1)
public Optional<HolderSet<Enchantment>>
a()
enchantments()
comp_2665()
enchantments()
f_337714_()
public MinMaxBounds$Ints
b()
level()
comp_1749()
levels()
f_30467_()