net.minecraft.advancements.critereon

public record EnchantmentPredicate

bs
net.minecraft.advancements.critereon.EnchantmentPredicate
net.minecraft.class_2035
net.minecraft.predicate.item.EnchantmentPredicate
net.minecraft.advancements.critereon.CriterionConditionEnchantments

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
a(ddg arg0)
containedIn(ItemEnchantments arg0)
method_8880(class_9304 arg0)
test(ItemEnchantmentsComponent enchantmentsComponent)
private boolean
a(ddg arg0, jr<dda> arg1)
matchesEnchantment(ItemEnchantments arg0, Holder<Enchantment> arg1)
method_59916(class_9304 arg0, class_6880<class_1887> arg1)
testLevel(ItemEnchantmentsComponent enchantmentsComponent, RegistryEntry<Enchantment> enchantment)
public Optional<HolderSet<Enchantment>>
a()
enchantments()
comp_2665()
enchantments()
public MinMaxBounds$Ints
b()
level()
comp_1749()
levels()