net.minecraft.advancements.critereon

public record EnchantmentPredicate

bp
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<Holder<Enchantment>>
b
enchantment
comp_1748
enchantment
f_30466_
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 (Enchantment enchantment, MinMaxBounds$Ints levels)
public (Optional<Holder<Enchantment>> level, MinMaxBounds$Ints arg1)

Method summary

Modifier and TypeMethod
public boolean
a(dah arg0)
containedIn(ItemEnchantments arg0)
method_8880(class_9304 arg0)
test(ItemEnchantmentsComponent enchantmentsComponent)
m_30476_(C_313873_ arg0)
public Optional<Holder<Enchantment>>
a()
enchantment()
comp_1748()
enchantment()
f_30466_()
public MinMaxBounds$Ints
b()
level()
comp_1749()
levels()
f_30467_()