Class EnchantmentsPredicate
java.lang.Object
net.minecraft.core.component.predicates.EnchantmentsPredicate
- All Implemented Interfaces:
SingleComponentItemPredicate<ItemEnchantments>
,DataComponentPredicate
- Direct Known Subclasses:
EnchantmentsPredicate.Enchantments
,EnchantmentsPredicate.StoredEnchantments
public abstract class EnchantmentsPredicate
extends Object
implements SingleComponentItemPredicate<ItemEnchantments>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.core.component.predicates.DataComponentPredicate
DataComponentPredicate.Single<T extends DataComponentPredicate>, DataComponentPredicate.Type<T extends DataComponentPredicate>
-
Field Summary
FieldsFields inherited from interface net.minecraft.core.component.predicates.DataComponentPredicate
CODEC, SINGLE_STREAM_CODEC, STREAM_CODEC
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EnchantmentsPredicate
(List<EnchantmentPredicate> p_400025_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends EnchantmentsPredicate>
com.mojang.serialization.Codec<T> codec
(Function<List<EnchantmentPredicate>, T> p_400213_) protected List
<EnchantmentPredicate> enchantments
(List<EnchantmentPredicate> p_399739_) boolean
matches
(ItemEnchantments p_399718_) storedEnchantments
(List<EnchantmentPredicate> p_399510_) 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
-
EnchantmentsPredicate
-
-
Method Details
-
codec
public static <T extends EnchantmentsPredicate> com.mojang.serialization.Codec<T> codec(Function<List<EnchantmentPredicate>, T> p_400213_) -
enchantments
-
matches
- Specified by:
matches
in interfaceSingleComponentItemPredicate<ItemEnchantments>
-
enchantments
-
storedEnchantments
public static EnchantmentsPredicate.StoredEnchantments storedEnchantments(List<EnchantmentPredicate> p_399510_)
-