Package net.minecraft.predicate.item
Class EnchantmentPredicate
java.lang.Object
net.minecraft.predicate.item.EnchantmentPredicate
- Mappings:
Namespace Name official bj
intermediary net/minecraft/class_2035
named net/minecraft/predicate/item/EnchantmentPredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EnchantmentPredicate
static final EnchantmentPredicate[]
private final @Nullable Enchantment
private final NumberRange.IntRange
-
Constructor Summary
ConstructorDescriptionEnchantmentPredicate
(@Nullable Enchantment enchantment, NumberRange.IntRange levels) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnchantmentPredicate
static EnchantmentPredicate[]
boolean
test
(Map<Enchantment, Integer> enchantments)
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lbj;a:Lbj;
intermediary field_9571
Lnet/minecraft/class_2035;field_9571:Lnet/minecraft/class_2035;
named ANY
Lnet/minecraft/predicate/item/EnchantmentPredicate;ANY:Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
ARRAY_OF_ANY
- Mappings:
Namespace Name Mixin selector official b
Lbj;b:[Lbj;
intermediary field_20687
Lnet/minecraft/class_2035;field_20687:[Lnet/minecraft/class_2035;
named ARRAY_OF_ANY
Lnet/minecraft/predicate/item/EnchantmentPredicate;ARRAY_OF_ANY:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
enchantment
- Mappings:
Namespace Name Mixin selector official c
Lbj;c:Lbxr;
intermediary field_9569
Lnet/minecraft/class_2035;field_9569:Lnet/minecraft/class_1887;
named enchantment
Lnet/minecraft/predicate/item/EnchantmentPredicate;enchantment:Lnet/minecraft/enchantment/Enchantment;
-
levels
- Mappings:
Namespace Name Mixin selector official d
Lbj;d:Lcj$d;
intermediary field_9570
Lnet/minecraft/class_2035;field_9570:Lnet/minecraft/class_2096$class_2100;
named levels
Lnet/minecraft/predicate/item/EnchantmentPredicate;levels:Lnet/minecraft/predicate/NumberRange$IntRange;
-
-
Constructor Details
-
EnchantmentPredicate
public EnchantmentPredicate() -
EnchantmentPredicate
public EnchantmentPredicate(@Nullable @Nullable Enchantment enchantment, NumberRange.IntRange levels) - Mappings:
Namespace Name Mixin selector official <init>
Lbj;<init>(Lbxr;Lcj$d;)V
intermediary <init>
Lnet/minecraft/class_2035;<init>(Lnet/minecraft/class_1887;Lnet/minecraft/class_2096$class_2100;)V
named <init>
Lnet/minecraft/predicate/item/EnchantmentPredicate;<init>(Lnet/minecraft/enchantment/Enchantment;Lnet/minecraft/predicate/NumberRange$IntRange;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbj;a(Ljava/util/Map;)Z
intermediary method_8880
Lnet/minecraft/class_2035;method_8880(Ljava/util/Map;)Z
named test
Lnet/minecraft/predicate/item/EnchantmentPredicate;test(Ljava/util/Map;)Z
-
serialize
- Mappings:
Namespace Name Mixin selector official a
Lbj;a()Lcom/google/gson/JsonElement;
intermediary method_8881
Lnet/minecraft/class_2035;method_8881()Lcom/google/gson/JsonElement;
named serialize
Lnet/minecraft/predicate/item/EnchantmentPredicate;serialize()Lcom/google/gson/JsonElement;
-
deserialize
- Mappings:
Namespace Name Mixin selector official a
Lbj;a(Lcom/google/gson/JsonElement;)Lbj;
intermediary method_8882
Lnet/minecraft/class_2035;method_8882(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2035;
named deserialize
Lnet/minecraft/predicate/item/EnchantmentPredicate;deserialize(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
deserializeAll
- Mappings:
Namespace Name Mixin selector official b
Lbj;b(Lcom/google/gson/JsonElement;)[Lbj;
intermediary method_8879
Lnet/minecraft/class_2035;method_8879(Lcom/google/gson/JsonElement;)[Lnet/minecraft/class_2035;
named deserializeAll
Lnet/minecraft/predicate/item/EnchantmentPredicate;deserializeAll(Lcom/google/gson/JsonElement;)[Lnet/minecraft/predicate/item/EnchantmentPredicate;
-