Package net.minecraft.predicate.item
Class EnchantmentPredicate
java.lang.Object
net.minecraft.predicate.item.EnchantmentPredicate
public class EnchantmentPredicate extends Object
- Mappings:
Namespace Name official bb
intermediary net/minecraft/class_2035
named net/minecraft/predicate/item/EnchantmentPredicate
-
Field Summary
Fields Modifier and Type Field Description static EnchantmentPredicate
ANY
static EnchantmentPredicate[]
ARRAY_OF_ANY
private Enchantment
enchantment
private NumberRange.IntRange
levels
-
Constructor Summary
Constructors Constructor Description EnchantmentPredicate()
EnchantmentPredicate(Enchantment enchantment, NumberRange.IntRange levels)
-
Method Summary
Modifier and Type Method Description static EnchantmentPredicate
deserialize(JsonElement el)
static EnchantmentPredicate[]
deserializeAll(JsonElement el)
JsonElement
serialize()
boolean
test(Map<Enchantment,Integer> enchantments)
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lbb;a:Lbb;
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
Lbb;b:[Lbb;
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
Lbb;c:Lbrp;
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
Lbb;d:Lbz$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
- Mappings:
Namespace Name Mixin selector official <init>
Lbb;<init>(Lbrp;Lbz$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
Lbb;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
Lbb;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
Lbb;a(Lcom/google/gson/JsonElement;)Lbb;
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
Lbb;b(Lcom/google/gson/JsonElement;)[Lbb;
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;
-