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_333910_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ItemEnchantmentsPredicate>
com.mojang.serialization.Codec<T> codec
(Function<List<EnchantmentPredicate>, T> p_333954_) protected List
<EnchantmentPredicate> enchantments
(List<EnchantmentPredicate> p_333715_) boolean
matches
(ItemStack p_333811_, ItemEnchantments p_334059_) storedEnchantments
(List<EnchantmentPredicate> p_333793_) 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_333954_) -
enchantments
-
matches
- Specified by:
matches
in interfaceSingleComponentItemPredicate<ItemEnchantments>
-
enchantments
public static ItemEnchantmentsPredicate.Enchantments enchantments(List<EnchantmentPredicate> p_333715_) -
storedEnchantments
public static ItemEnchantmentsPredicate.StoredEnchantments storedEnchantments(List<EnchantmentPredicate> p_333793_)
-