Package net.minecraft.predicate.item
Class EnchantmentPredicate
java.lang.Object
net.minecraft.predicate.item.EnchantmentPredicate
- Mappings:
Namespace Name official bh
intermediary net/minecraft/class_2035
named net/minecraft/predicate/item/EnchantmentPredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic EnchantmentPredicate
static EnchantmentPredicate[]
private Enchantment
private 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
Lbh;a:Lbh;
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
Lbh;b:[Lbh;
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
Lbh;c:Lbuj;
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
Lbh;d:Lch$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>
Lbh;<init>(Lbuj;Lch$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
Lbh;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
Lbh;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
Lbh;a(Lcom/google/gson/JsonElement;)Lbh;
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
Lbh;b(Lcom/google/gson/JsonElement;)[Lbh;
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;
-