Uses of Record Class
net.minecraft.predicate.item.EnchantmentPredicate
-
Uses of EnchantmentPredicate in net.minecraft.predicate.item
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnchantmentPredicate>
EnchantmentPredicate.CODEC
private final ImmutableList.Builder<EnchantmentPredicate>
ItemPredicate.Builder.enchantments
private final List<EnchantmentPredicate>
ItemPredicate.enchantments
The field for theenchantments
record component.private final ImmutableList.Builder<EnchantmentPredicate>
ItemPredicate.Builder.storedEnchantments
private final List<EnchantmentPredicate>
ItemPredicate.storedEnchantments
The field for thestoredEnchantments
record component.Modifier and TypeMethodDescriptionItemPredicate.enchantments()
Returns the value of theenchantments
record component.ItemPredicate.storedEnchantments()
Returns the value of thestoredEnchantments
record component.Modifier and TypeMethodDescriptionItemPredicate.Builder.enchantment
(EnchantmentPredicate enchantment) ItemPredicate.Builder.storedEnchantment
(EnchantmentPredicate enchantment) ModifierConstructorDescriptionItemPredicate
(Optional<TagKey<Item>> optional, Optional<RegistryEntryList<Item>> optional2, NumberRange.IntRange count, NumberRange.IntRange durability, List<EnchantmentPredicate> list, List<EnchantmentPredicate> list2, Optional<RegistryEntry<Potion>> optional3, Optional<NbtPredicate> optional4)