Uses of Record Class
net.minecraft.advancements.critereon.EnchantmentPredicate
-
Uses of EnchantmentPredicate in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnchantmentPredicate>
EnchantmentPredicate.CODEC
private final com.google.common.collect.ImmutableList.Builder<EnchantmentPredicate>
ItemPredicate.Builder.enchantments
private final List<EnchantmentPredicate>
ItemPredicate.enchantments
The field for theenchantments
record component.private final com.google.common.collect.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.hasEnchantment
(EnchantmentPredicate p_45072_) ItemPredicate.Builder.hasStoredEnchantment
(EnchantmentPredicate p_151448_) ModifierConstructorDescriptionItemPredicate
(Optional<TagKey<Item>> tag, Optional<HolderSet<Item>> items, MinMaxBounds.Ints count, MinMaxBounds.Ints durability, List<EnchantmentPredicate> enchantments, List<EnchantmentPredicate> storedEnchantments, Optional<Holder<Potion>> potion, Optional<NbtPredicate> nbt) Creates an instance of aItemPredicate
record class.