Class EnchantmentPredicate

java.lang.Object
net.minecraft.predicate.item.EnchantmentPredicate

public class EnchantmentPredicate extends Object
Mappings:
Namespace Name
official bj
intermediary net/minecraft/class_2035
named net/minecraft/predicate/item/EnchantmentPredicate
  • Field Details

    • ANY

      public static final EnchantmentPredicate 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

      public static final 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

      @Nullable private final @Nullable Enchantment enchantment
      Mappings:
      Namespace Name Mixin selector
      official c Lbj;c:Lbxy;
      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

      private final NumberRange.IntRange 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>(Lbxy;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

      public boolean test(Map<Enchantment,Integer> enchantments)
      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

      public JsonElement 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

      public static EnchantmentPredicate deserialize(@Nullable @Nullable JsonElement el)
      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

      public static EnchantmentPredicate[] deserializeAll(@Nullable @Nullable JsonElement el)
      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;