Class ItemEnchantmentsPredicate
java.lang.Object
net.minecraft.advancements.critereon.ItemEnchantmentsPredicate
- All Implemented Interfaces:
ItemSubPredicate
,SingleComponentItemPredicate<ItemEnchantments>
- Direct Known Subclasses:
ItemEnchantmentsPredicate.Enchantments
,ItemEnchantmentsPredicate.StoredEnchantments
public abstract class ItemEnchantmentsPredicate
extends Object
implements SingleComponentItemPredicate<ItemEnchantments>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.advancements.critereon.ItemSubPredicate
ItemSubPredicate.Type<T extends ItemSubPredicate>
-
Field Summary
Fields inherited from interface net.minecraft.advancements.critereon.ItemSubPredicate
CODEC
-
Constructor Summary
ModifierConstructorDescriptionprotected
ItemEnchantmentsPredicate
(List<EnchantmentPredicate> p_327909_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ItemEnchantmentsPredicate>
com.mojang.serialization.Codec<T> codec
(Function<List<EnchantmentPredicate>, T> p_330847_) protected List
<EnchantmentPredicate> enchantments
(List<EnchantmentPredicate> p_334509_) boolean
matches
(ItemStack p_332137_, ItemEnchantments p_331461_) storedEnchantments
(List<EnchantmentPredicate> p_331491_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.advancements.critereon.SingleComponentItemPredicate
componentType, matches
-
Field Details
-
enchantments
-
-
Constructor Details
-
ItemEnchantmentsPredicate
-
-
Method Details
-
codec
public static <T extends ItemEnchantmentsPredicate> com.mojang.serialization.Codec<T> codec(Function<List<EnchantmentPredicate>, T> p_330847_) -
enchantments
-
matches
- Specified by:
matches
in interfaceSingleComponentItemPredicate<ItemEnchantments>
-
enchantments
public static ItemEnchantmentsPredicate.Enchantments enchantments(List<EnchantmentPredicate> p_334509_) -
storedEnchantments
public static ItemEnchantmentsPredicate.StoredEnchantments storedEnchantments(List<EnchantmentPredicate> p_331491_)
-