Package net.minecraft.predicate.item
Class EnchantmentsPredicate
java.lang.Object
net.minecraft.predicate.item.EnchantmentsPredicate
- All Implemented Interfaces:
ComponentPredicate<ItemEnchantmentsComponent>
,ItemSubPredicate
- Direct Known Subclasses:
EnchantmentsPredicate.Enchantments
,EnchantmentsPredicate.StoredEnchantments
public abstract class EnchantmentsPredicate
extends Object
implements ComponentPredicate<ItemEnchantmentsComponent>
- Mappings:
Namespace Name official ce
intermediary net/minecraft/class_9356
named net/minecraft/predicate/item/EnchantmentsPredicate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface net.minecraft.predicate.item.ItemSubPredicate
ItemSubPredicate.Type<T extends ItemSubPredicate>
-
Field Summary
FieldsFields inherited from interface net.minecraft.predicate.item.ItemSubPredicate
CODEC
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EnchantmentsPredicate
(List<EnchantmentPredicate> enchantmentPredicates) -
Method Summary
Modifier and TypeMethodDescriptionenchantments
(List<EnchantmentPredicate> enchantmentPredicates) static <T extends EnchantmentsPredicate>
com.mojang.serialization.Codec<T> getCodec
(Function<List<EnchantmentPredicate>, T> factory) protected List
<EnchantmentPredicate> storedEnchantments
(List<EnchantmentPredicate> enchantmentPredicates) boolean
test
(ItemStack itemStack, ItemEnchantmentsComponent itemEnchantmentsComponent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.predicate.item.ComponentPredicate
getComponentType, test
-
Field Details
-
enchantmentPredicates
- Mappings:
Namespace Name Mixin selector official a
Lce;a:Ljava/util/List;
intermediary field_49799
Lnet/minecraft/class_9356;field_49799:Ljava/util/List;
named enchantmentPredicates
Lnet/minecraft/predicate/item/EnchantmentsPredicate;enchantmentPredicates:Ljava/util/List;
-
-
Constructor Details
-
EnchantmentsPredicate
- Mappings:
Namespace Name Mixin selector official <init>
Lce;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_9356;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/predicate/item/EnchantmentsPredicate;<init>(Ljava/util/List;)V
-
-
Method Details
-
getCodec
public static <T extends EnchantmentsPredicate> com.mojang.serialization.Codec<T> getCodec(Function<List<EnchantmentPredicate>, T> factory) - Mappings:
Namespace Name Mixin selector official a
Lce;a(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_58174
Lnet/minecraft/class_9356;method_58174(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named getCodec
Lnet/minecraft/predicate/item/EnchantmentsPredicate;getCodec(Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
getEnchantmentPredicates
- Mappings:
Namespace Name Mixin selector official b
Lce;b()Ljava/util/List;
intermediary method_58175
Lnet/minecraft/class_9356;method_58175()Ljava/util/List;
named getEnchantmentPredicates
Lnet/minecraft/predicate/item/EnchantmentsPredicate;getEnchantmentPredicates()Ljava/util/List;
-
test
- Specified by:
test
in interfaceComponentPredicate<ItemEnchantmentsComponent>
- Mappings:
Namespace Name Mixin selector official a
Lce;a(Lcsd;Lcxu;)Z
intermediary method_58172
Lnet/minecraft/class_9356;method_58172(Lnet/minecraft/class_1799;Lnet/minecraft/class_9304;)Z
named test
Lnet/minecraft/predicate/item/EnchantmentsPredicate;test(Lnet/minecraft/item/ItemStack;Lnet/minecraft/component/type/ItemEnchantmentsComponent;)Z
-
enchantments
public static EnchantmentsPredicate.Enchantments enchantments(List<EnchantmentPredicate> enchantmentPredicates) - Mappings:
Namespace Name Mixin selector official a
Lce;a(Ljava/util/List;)Lce$a;
intermediary method_58173
Lnet/minecraft/class_9356;method_58173(Ljava/util/List;)Lnet/minecraft/class_9356$class_9357;
named enchantments
Lnet/minecraft/predicate/item/EnchantmentsPredicate;enchantments(Ljava/util/List;)Lnet/minecraft/predicate/item/EnchantmentsPredicate$Enchantments;
-
storedEnchantments
public static EnchantmentsPredicate.StoredEnchantments storedEnchantments(List<EnchantmentPredicate> enchantmentPredicates) - Mappings:
Namespace Name Mixin selector official b
Lce;b(Ljava/util/List;)Lce$b;
intermediary method_58176
Lnet/minecraft/class_9356;method_58176(Ljava/util/List;)Lnet/minecraft/class_9356$class_9358;
named storedEnchantments
Lnet/minecraft/predicate/item/EnchantmentsPredicate;storedEnchantments(Ljava/util/List;)Lnet/minecraft/predicate/item/EnchantmentsPredicate$StoredEnchantments;
-