Class ItemPredicate

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

public class ItemPredicate extends Object
Mappings:
Namespace Name
official bz
intermediary net/minecraft/class_2073
named net/minecraft/predicate/item/ItemPredicate
  • Field Details

    • ANY

      public static final ItemPredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a:Lbz;
      intermediary field_9640 Lnet/minecraft/class_2073;field_9640:Lnet/minecraft/class_2073;
      named ANY Lnet/minecraft/predicate/item/ItemPredicate;ANY:Lnet/minecraft/predicate/item/ItemPredicate;
    • tag

      @Nullable private final @Nullable TagKey<Item> tag
      Mappings:
      Namespace Name Mixin selector
      official b Lbz;b:Lanl;
      intermediary field_9643 Lnet/minecraft/class_2073;field_9643:Lnet/minecraft/class_6862;
      named tag Lnet/minecraft/predicate/item/ItemPredicate;tag:Lnet/minecraft/registry/tag/TagKey;
    • items

      @Nullable private final @Nullable Set<Item> items
      Mappings:
      Namespace Name Mixin selector
      official c Lbz;c:Ljava/util/Set;
      intermediary field_9644 Lnet/minecraft/class_2073;field_9644:Ljava/util/Set;
      named items Lnet/minecraft/predicate/item/ItemPredicate;items:Ljava/util/Set;
    • count

      private final NumberRange.IntRange count
      Mappings:
      Namespace Name Mixin selector
      official d Lbz;d:Lcj$d;
      intermediary field_9641 Lnet/minecraft/class_2073;field_9641:Lnet/minecraft/class_2096$class_2100;
      named count Lnet/minecraft/predicate/item/ItemPredicate;count:Lnet/minecraft/predicate/NumberRange$IntRange;
    • durability

      private final NumberRange.IntRange durability
      Mappings:
      Namespace Name Mixin selector
      official e Lbz;e:Lcj$d;
      intermediary field_9646 Lnet/minecraft/class_2073;field_9646:Lnet/minecraft/class_2096$class_2100;
      named durability Lnet/minecraft/predicate/item/ItemPredicate;durability:Lnet/minecraft/predicate/NumberRange$IntRange;
    • enchantments

      private final EnchantmentPredicate[] enchantments
      Mappings:
      Namespace Name Mixin selector
      official f Lbz;f:[Lbj;
      intermediary field_9647 Lnet/minecraft/class_2073;field_9647:[Lnet/minecraft/class_2035;
      named enchantments Lnet/minecraft/predicate/item/ItemPredicate;enchantments:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
    • storedEnchantments

      private final EnchantmentPredicate[] storedEnchantments
      Mappings:
      Namespace Name Mixin selector
      official g Lbz;g:[Lbj;
      intermediary field_20689 Lnet/minecraft/class_2073;field_20689:[Lnet/minecraft/class_2035;
      named storedEnchantments Lnet/minecraft/predicate/item/ItemPredicate;storedEnchantments:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
    • potion

      @Nullable private final @Nullable Potion potion
      Mappings:
      Namespace Name Mixin selector
      official h Lbz;h:Lchw;
      intermediary field_9642 Lnet/minecraft/class_2073;field_9642:Lnet/minecraft/class_1842;
      named potion Lnet/minecraft/predicate/item/ItemPredicate;potion:Lnet/minecraft/potion/Potion;
    • nbt

      private final NbtPredicate nbt
      Mappings:
      Namespace Name Mixin selector
      official i Lbz;i:Lcl;
      intermediary field_9645 Lnet/minecraft/class_2073;field_9645:Lnet/minecraft/class_2105;
      named nbt Lnet/minecraft/predicate/item/ItemPredicate;nbt:Lnet/minecraft/predicate/NbtPredicate;
  • Constructor Details

    • ItemPredicate

      public ItemPredicate()
    • ItemPredicate

      public ItemPredicate(@Nullable @Nullable TagKey<Item> tag, @Nullable @Nullable Set<Item> items, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, @Nullable @Nullable Potion potion, NbtPredicate nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbz;<init>(Lanl;Ljava/util/Set;Lcj$d;Lcj$d;[Lbj;[Lbj;Lchw;Lcl;)V
      intermediary <init> Lnet/minecraft/class_2073;<init>(Lnet/minecraft/class_6862;Ljava/util/Set;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;[Lnet/minecraft/class_2035;[Lnet/minecraft/class_2035;Lnet/minecraft/class_1842;Lnet/minecraft/class_2105;)V
      named <init> Lnet/minecraft/predicate/item/ItemPredicate;<init>(Lnet/minecraft/registry/tag/TagKey;Ljava/util/Set;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;[Lnet/minecraft/predicate/item/EnchantmentPredicate;[Lnet/minecraft/predicate/item/EnchantmentPredicate;Lnet/minecraft/potion/Potion;Lnet/minecraft/predicate/NbtPredicate;)V
  • Method Details

    • test

      public boolean test(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a(Lcfz;)Z
      intermediary method_8970 Lnet/minecraft/class_2073;method_8970(Lnet/minecraft/class_1799;)Z
      named test Lnet/minecraft/predicate/item/ItemPredicate;test(Lnet/minecraft/item/ItemStack;)Z
    • fromJson

      public static ItemPredicate fromJson(@Nullable @Nullable JsonElement el)
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a(Lcom/google/gson/JsonElement;)Lbz;
      intermediary method_8969 Lnet/minecraft/class_2073;method_8969(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2073;
      named fromJson Lnet/minecraft/predicate/item/ItemPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/item/ItemPredicate;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbz;a()Lcom/google/gson/JsonElement;
      intermediary method_8971 Lnet/minecraft/class_2073;method_8971()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/item/ItemPredicate;toJson()Lcom/google/gson/JsonElement;
    • deserializeAll

      public static ItemPredicate[] deserializeAll(@Nullable @Nullable JsonElement el)
      Mappings:
      Namespace Name Mixin selector
      official b Lbz;b(Lcom/google/gson/JsonElement;)[Lbz;
      intermediary method_8972 Lnet/minecraft/class_2073;method_8972(Lcom/google/gson/JsonElement;)[Lnet/minecraft/class_2073;
      named deserializeAll Lnet/minecraft/predicate/item/ItemPredicate;deserializeAll(Lcom/google/gson/JsonElement;)[Lnet/minecraft/predicate/item/ItemPredicate;