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 Details

    • ANY

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

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

      private final Enchantment 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

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

      public EnchantmentPredicate​(@Nullable Enchantment enchantment, NumberRange.IntRange levels)
      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

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

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

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

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