类 EnchantmentsPredicate
java.lang.Object
net.minecraft.core.component.predicates.EnchantmentsPredicate
public abstract class EnchantmentsPredicate
extends Object
implements SingleComponentItemPredicate<ItemEnchantments>
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static class
从接口继承的嵌套类/接口 net.minecraft.core.component.predicates.DataComponentPredicate
DataComponentPredicate.Single<T extends DataComponentPredicate>, DataComponentPredicate.Type<T extends DataComponentPredicate>
-
字段概要
字段从接口继承的字段 net.minecraft.core.component.predicates.DataComponentPredicate
CODEC, SINGLE_STREAM_CODEC, STREAM_CODEC
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <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_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.advancements.critereon.SingleComponentItemPredicate
componentType, matches
-
字段详细资料
-
enchantments
-
-
构造器详细资料
-
EnchantmentsPredicate
-
-
方法详细资料
-
codec
public static <T extends EnchantmentsPredicate> com.mojang.serialization.Codec<T> codec(Function<List<EnchantmentPredicate>, T> p_400213_) -
enchantments
-
matches
- 指定者:
matches
在接口中SingleComponentItemPredicate<ItemEnchantments>
-
enchantments
-
storedEnchantments
public static EnchantmentsPredicate.StoredEnchantments storedEnchantments(List<EnchantmentPredicate> p_399510_)
-