Class ItemPredicate.Builder

java.lang.Object
net.minecraft.predicate.item.ItemPredicate.Builder
Enclosing class:
ItemPredicate

public static class ItemPredicate.Builder extends Object
Mappings:
Namespace Name
official bw$a
intermediary net/minecraft/class_2073$class_2074
named net/minecraft/predicate/item/ItemPredicate$Builder
  • Field Details

    • enchantments

      private final List<EnchantmentPredicate> enchantments
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a:Ljava/util/List;
      intermediary field_9649 Lnet/minecraft/class_2073$class_2074;field_9649:Ljava/util/List;
      named enchantments Lnet/minecraft/predicate/item/ItemPredicate$Builder;enchantments:Ljava/util/List;
    • storedEnchantments

      private final List<EnchantmentPredicate> storedEnchantments
      Mappings:
      Namespace Name Mixin selector
      official b Lbw$a;b:Ljava/util/List;
      intermediary field_20690 Lnet/minecraft/class_2073$class_2074;field_20690:Ljava/util/List;
      named storedEnchantments Lnet/minecraft/predicate/item/ItemPredicate$Builder;storedEnchantments:Ljava/util/List;
    • item

      @Nullable private @Nullable Set<Item> item
      Mappings:
      Namespace Name Mixin selector
      official c Lbw$a;c:Ljava/util/Set;
      intermediary field_9650 Lnet/minecraft/class_2073$class_2074;field_9650:Ljava/util/Set;
      named item Lnet/minecraft/predicate/item/ItemPredicate$Builder;item:Ljava/util/Set;
    • tag

      @Nullable private @Nullable Tag<Item> tag
      Mappings:
      Namespace Name Mixin selector
      official d Lbw$a;d:Laga;
      intermediary field_9652 Lnet/minecraft/class_2073$class_2074;field_9652:Lnet/minecraft/class_3494;
      named tag Lnet/minecraft/predicate/item/ItemPredicate$Builder;tag:Lnet/minecraft/tag/Tag;
    • count

      private NumberRange.IntRange count
      Mappings:
      Namespace Name Mixin selector
      official e Lbw$a;e:Lch$d;
      intermediary field_9648 Lnet/minecraft/class_2073$class_2074;field_9648:Lnet/minecraft/class_2096$class_2100;
      named count Lnet/minecraft/predicate/item/ItemPredicate$Builder;count:Lnet/minecraft/predicate/NumberRange$IntRange;
    • durability

      private NumberRange.IntRange durability
      Mappings:
      Namespace Name Mixin selector
      official f Lbw$a;f:Lch$d;
      intermediary field_9653 Lnet/minecraft/class_2073$class_2074;field_9653:Lnet/minecraft/class_2096$class_2100;
      named durability Lnet/minecraft/predicate/item/ItemPredicate$Builder;durability:Lnet/minecraft/predicate/NumberRange$IntRange;
    • potion

      @Nullable private @Nullable Potion potion
      Mappings:
      Namespace Name Mixin selector
      official g Lbw$a;g:Lbsk;
      intermediary field_9651 Lnet/minecraft/class_2073$class_2074;field_9651:Lnet/minecraft/class_1842;
      named potion Lnet/minecraft/predicate/item/ItemPredicate$Builder;potion:Lnet/minecraft/potion/Potion;
    • nbt

      private NbtPredicate nbt
      Mappings:
      Namespace Name Mixin selector
      official h Lbw$a;h:Lcj;
      intermediary field_9654 Lnet/minecraft/class_2073$class_2074;field_9654:Lnet/minecraft/class_2105;
      named nbt Lnet/minecraft/predicate/item/ItemPredicate$Builder;nbt:Lnet/minecraft/predicate/NbtPredicate;
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • create

      public static ItemPredicate.Builder create()
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a()Lbw$a;
      intermediary method_8973 Lnet/minecraft/class_2073$class_2074;method_8973()Lnet/minecraft/class_2073$class_2074;
      named create Lnet/minecraft/predicate/item/ItemPredicate$Builder;create()Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • item

      public ItemPredicate.Builder item(ItemConvertible[] itemConvertible)
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a([Lbwo;)Lbw$a;
      intermediary method_8977 Lnet/minecraft/class_2073$class_2074;method_8977([Lnet/minecraft/class_1935;)Lnet/minecraft/class_2073$class_2074;
      named item Lnet/minecraft/predicate/item/ItemPredicate$Builder;item([Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • tag

      public ItemPredicate.Builder tag(Tag<Item> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Laga;)Lbw$a;
      intermediary method_8975 Lnet/minecraft/class_2073$class_2074;method_8975(Lnet/minecraft/class_3494;)Lnet/minecraft/class_2073$class_2074;
      named tag Lnet/minecraft/predicate/item/ItemPredicate$Builder;tag(Lnet/minecraft/tag/Tag;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • count

      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Lch$d;)Lbw$a;
      intermediary method_35233 Lnet/minecraft/class_2073$class_2074;method_35233(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_2073$class_2074;
      named count Lnet/minecraft/predicate/item/ItemPredicate$Builder;count(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • durability

      public ItemPredicate.Builder durability(NumberRange.IntRange durability)
      Mappings:
      Namespace Name Mixin selector
      official b Lbw$a;b(Lch$d;)Lbw$a;
      intermediary method_35235 Lnet/minecraft/class_2073$class_2074;method_35235(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_2073$class_2074;
      named durability Lnet/minecraft/predicate/item/ItemPredicate$Builder;durability(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • potion

      public ItemPredicate.Builder potion(Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Lbsk;)Lbw$a;
      intermediary method_35232 Lnet/minecraft/class_2073$class_2074;method_35232(Lnet/minecraft/class_1842;)Lnet/minecraft/class_2073$class_2074;
      named potion Lnet/minecraft/predicate/item/ItemPredicate$Builder;potion(Lnet/minecraft/potion/Potion;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • nbt

      public ItemPredicate.Builder nbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Lna;)Lbw$a;
      intermediary method_20399 Lnet/minecraft/class_2073$class_2074;method_20399(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2073$class_2074;
      named nbt Lnet/minecraft/predicate/item/ItemPredicate$Builder;nbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • enchantment

      public ItemPredicate.Builder enchantment(EnchantmentPredicate enchantment)
      Mappings:
      Namespace Name Mixin selector
      official a Lbw$a;a(Lbh;)Lbw$a;
      intermediary method_8978 Lnet/minecraft/class_2073$class_2074;method_8978(Lnet/minecraft/class_2035;)Lnet/minecraft/class_2073$class_2074;
      named enchantment Lnet/minecraft/predicate/item/ItemPredicate$Builder;enchantment(Lnet/minecraft/predicate/item/EnchantmentPredicate;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • storedEnchantment

      public ItemPredicate.Builder storedEnchantment(EnchantmentPredicate enchantment)
      Mappings:
      Namespace Name Mixin selector
      official b Lbw$a;b(Lbh;)Lbw$a;
      intermediary method_35234 Lnet/minecraft/class_2073$class_2074;method_35234(Lnet/minecraft/class_2035;)Lnet/minecraft/class_2073$class_2074;
      named storedEnchantment Lnet/minecraft/predicate/item/ItemPredicate$Builder;storedEnchantment(Lnet/minecraft/predicate/item/EnchantmentPredicate;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
    • build

      public ItemPredicate build()
      Mappings:
      Namespace Name Mixin selector
      official b Lbw$a;b()Lbw;
      intermediary method_8976 Lnet/minecraft/class_2073$class_2074;method_8976()Lnet/minecraft/class_2073;
      named build Lnet/minecraft/predicate/item/ItemPredicate$Builder;build()Lnet/minecraft/predicate/item/ItemPredicate;